|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.jgamegrid.GGInputLong
public class GGInputLong
Class to provide a modal dialog with one text field and a Ok and Cancel button based on JOptionPane with type verification.
Constructor Summary | |
---|---|
GGInputLong(java.lang.String title,
java.lang.String prompt)
Creates a modal dialog with given title, prompt and no initial value. |
|
GGInputLong(java.lang.String title,
java.lang.String prompt,
long init)
Creates a modal dialog with given title, prompt and initial value. |
Method Summary | |
---|---|
long |
show()
Returns the user input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GGInputLong(java.lang.String title, java.lang.String prompt, long init)
title
- the title string in the title barprompt
- the prompt stringinit
- an initial value put in the text fieldpublic GGInputLong(java.lang.String title, java.lang.String prompt)
title
- the title string in the title barprompt
- the prompt stringMethod Detail |
---|
public long show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |