|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavabook.JavaBookDialog
javabook.InputBox
This dialog is for getting a single input value. You can enter int, float, or double values.
This class is provided as freeware. You are free to use as provided or modify to your heart's content. But you use it at your own risk. No implied or explicit warranty is given.
Field Summary |
Fields inherited from class javabook.JavaBookDialog |
ERROR_ICON, INFO_ICON, NO_ICON, QUESTION_ICON, WARNING_ICON |
Constructor Summary | |
InputBox(java.awt.Frame owner)
Default constructor. |
|
InputBox(java.awt.Frame owner,
boolean modal)
Constructs this dialog with 'owner' as its owner and display this dialog as modal if the parameter is true. |
Method Summary | |
double |
getDouble()
Allows the user to enter a double value. |
double |
getDouble(java.lang.String text)
Allows the user to enter a double value. |
float |
getFloat()
Allows the user to enter a double value. |
float |
getFloat(java.lang.String text)
Allows the user to enter a float value. |
int |
getInteger()
Allows the user to enter an integer value. |
int |
getInteger(java.lang.String text)
Allows the user to enter an integer value. |
java.lang.String |
getString()
Allows the user to enter a String. |
java.lang.String |
getString(java.lang.String text)
Allows the user to enter a String value. |
Methods inherited from class javabook.JavaBookDialog |
setIcon, setLocation, setTitle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputBox(java.awt.Frame owner)
owner
- a Frame object owner of this dialogpublic InputBox(java.awt.Frame owner, boolean modal)
owner
- a Frame object owner of this dialogmodal
- true for modal dialog; false for modeless dialogMethod Detail |
public int getInteger()
public int getInteger(java.lang.String text)
text
- the prompt used in this dialog
public double getDouble()
public double getDouble(java.lang.String text)
text
- the prompt used in this dialog
public float getFloat()
public float getFloat(java.lang.String text)
text
- the prompt used in this dialog
public java.lang.String getString()
public java.lang.String getString(java.lang.String text)
text
- the prompt used in this dialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |