jbcl.control Package
java.lang.Object +----java.awt.Component +----java.awt.Container +----java.awt.Window +----java.awt.Dialog +----javax.swing.JDialog +----com.borland.jbcl.control.ButtonDialog +----com.borland.jbcl.control.StringInputDialog
Variables Constructors Properties Methods Event Listeners
Implements ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
The StringInputDialog
component displays a dialog box
with a single input box, or text field, in which the user can
type text. The dialog box also contains two buttons: OK and
Cancel.
To display the dialog box at runtime, call the show()
method or set the visible
property to true.
When the user types in text in the input box and closes the
dialog box, the text string is stored in the value
property.
The dialog box has two buttons, OK and Cancel. Which button
the user chooses to put away the dialog box is stored as the
value of the result
property. The title
property
contains the text that appears on the title bar of the dialog
box's frame.
Usually you should StringInput
instead of StringInputDialog
.
StringInput
calls the constructor of StringInputDialog
,
but you can work with StringInput
within the UI Designer
and even display it at design time. You can set the properties of
StringInputDialog
only at runtime.
public StringInputDialog(Frame frame)Constructs a
StringInputDialog
dialog with the given frame.
Parameters:
frame
StringInputDialog
.
public StringInputDialog(Frame frame, String title)
Constructs a StringInputDialog
dialog with the given
frame and title.
Parameters:
frame
StringInputDialog
.
title
public StringInputDialog(Frame frame, String title, String value)
Constructs a StringInputDialog
dialog with the given
frame, title, and initial value.
Parameters:
frame
StringInputDialog
.
title
value
String
that is in the input box..
public String getValue() public void setValue(String value)
Determines the string that appears in the input box of the StringInputDialog
component.
public synchronized void addActionListener(ActionListener l) public synchronized void removeActionListener(ActionListener l)
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addContainerListener(java.awt.event.ContainerListener ) public synchronized void removeContainerListener(java.awt.event.ContainerListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener ) public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )
public synchronized void addWindowListener(java.awt.event.WindowListener ) public synchronized void removeWindowListener(java.awt.event.WindowListener )