|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpdraw.SimpleInput
public class SimpleInput
Class to make it easy to get input from a user using JOptionPane
Constructor Summary | |
---|---|
SimpleInput()
|
Method Summary | |
---|---|
static int |
getIntNumber(java.lang.String message)
Method to allow the user to input an integer. |
static int |
getIntNumber(java.lang.String message,
int min,
int max)
Method to get an integer between a minimum and maximum (inclusive) |
static 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleInput()
Method Detail |
---|
public static double getNumber(java.lang.String message)
message
- the message to display to
the user in the dialog
public static int getIntNumber(java.lang.String message)
message
- the message to display to
the user in the dialog
public static int 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 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 |