public final class InputDialog
extends java.lang.Object
implements java.beans.PropertyChangeListener
InputDialog
class is used to retrieve information from a user.Modifier and Type | Field and Description |
---|---|
javax.swing.Action |
nextFocusAction
Move to focus forward action.
|
javax.swing.Action |
prevFocusAction
Moves the focus backwards in the dialog.
|
Constructor and Description |
---|
InputDialog()
Empty Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInput(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
java.awt.Component parent)
Prompt and return input.
|
java.lang.String |
getInput(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
int width,
int height)
Returns the input from a user.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
public javax.swing.Action nextFocusAction
public javax.swing.Action prevFocusAction
public java.lang.String getInput(java.lang.String title, java.lang.String description, javax.swing.Icon icon, int width, int height)
title
- the title of the dialog.description
- the dialog description.icon
- the icon to use.width
- the dialog widthheight
- the dialog heightpublic java.lang.String getInput(java.lang.String title, java.lang.String description, javax.swing.Icon icon, java.awt.Component parent)
title
- the title of the dialog.description
- the dialog description.icon
- the icon to use.parent
- the parent to use.public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener