|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimpleInput
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 String |
getDirectory(String message)
Method to get the name of a directory |
static int |
getIntNumber(String message)
Method to allow the user to input an integer. |
static int |
getIntNumber(String message,
int min,
int max)
Method to get an integer between a minimum and maximum (inclusive) |
static double |
getNumber(String message)
Method to allow the user to input a number. |
static String |
getString(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 double getNumber(String message)
message
- the message to display to
the user in the dialog
public static int getIntNumber(String message)
message
- the message to display to
the user in the dialog
public static int getIntNumber(String message, int min, int max)
message
- the message to display tomin
- the minimum numbermax
- the maximum number
public static String getDirectory(String message)
message
- the message to display to the user
public static String getString(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 |