|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimpleInput
public class SimpleInput
Class to make it easy to get input from a user using JOptionPane Copyright Georgia Institute of Technology 2004
Constructor Summary | |
---|---|
SimpleInput()
|
Method Summary | |
---|---|
static java.lang.String |
getDirectory(java.lang.String message)
Method to get the name of a directory |
static java.lang.Integer |
getIntNumber(java.lang.String message)
Method to allow the user to input an integer. |
static java.lang.Integer |
getIntNumber(java.lang.String message,
int min,
int max)
Method to get an integer between a minimum and maximum (inclusive) |
static java.lang.Double |
getNumber(java.lang.String message)
Method to allow the user to input a number. |
static java.lang.String |
getString(java.lang.String message)
Method to get a string input by the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleInput()
Method Detail |
---|
public static java.lang.Double getNumber(java.lang.String message)
message
- the message to display to
the user in the dialog
public static java.lang.Integer getIntNumber(java.lang.String message)
message
- the message to display to
the user in the dialog
public static java.lang.Integer getIntNumber(java.lang.String message, int min, int max)
message
- the message to display tomin
- the minimum numbermax
- the maximum number
public static java.lang.String getDirectory(java.lang.String message)
message
- the message to display to the user
public static java.lang.String getString(java.lang.String message)
message
- the message to display to
the user
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |