|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mov.ui.TextDialog
public class TextDialog
Replacement dialog for Java's JOptionPane dialog for querying the user to enter a text field. It provides two fixes for the existing Java code. Firstly it allows for default text to be placed in the text input field, secondly it allows the user to press return to exit the dialog.
Constructor Summary | |
---|---|
TextDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.String title)
Create new text dialog. |
|
TextDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.String title,
java.lang.String defaultText)
Create new text dialog. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
ActionListener interface used for internal buttons. |
java.lang.String |
showDialog()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextDialog(javax.swing.JComponent parent, java.lang.String message, java.lang.String title)
parent
- The parent component to tie the dialog tomessage
- The question to ask the usertitle
- The title to place on the dialogpublic TextDialog(javax.swing.JComponent parent, java.lang.String message, java.lang.String title, java.lang.String defaultText)
parent
- The parent component to tie the dialog tomessage
- The question to ask the usertitle
- The title to place on the dialogdefaultText
- The default string to display in the text entryMethod Detail |
---|
public java.lang.String showDialog()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |