|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--JTextTools
A number of useful methods for dealing with JTextFields.
| Constructor Summary | |
JTextTools()
|
|
| Method Summary | |
static void |
dealWithInvalidValue(javax.swing.JTextField jTxt)
Method for dealing with an invalid value in a JTextField. |
static double |
getDouble(javax.swing.JTextField jTxt,
javax.swing.JTextArea jTxtArea,
java.lang.String errMessage)
Method for getting a double value from a JTextField. |
static int |
getInt(javax.swing.JTextField jTxt,
javax.swing.JTextArea jTxtArea,
java.lang.String errMessage)
Method for getting an int value from a JTextField. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JTextTools()
| Method Detail |
public static void dealWithInvalidValue(javax.swing.JTextField jTxt)
jTxt - the JTextField
java.lang.IllegalArgumentException - always thrown
public static double getDouble(javax.swing.JTextField jTxt,
javax.swing.JTextArea jTxtArea,
java.lang.String errMessage)
jTxt - the JTextFieldjTxtArea - the JTextAreaerrMessage - the error message to be appended to the text area
java.lang.IllegalArgumentException - if text field contains an
invalid value
public static int getInt(javax.swing.JTextField jTxt,
javax.swing.JTextArea jTxtArea,
java.lang.String errMessage)
jTxt - the JTextFieldjTxtArea - the JTextAreaerrMessage - the error message to be appended to the text area
java.lang.IllegalArgumentException - if text field contains an
invalid value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||