Class SelectStringDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class SelectStringDialog extends JDialog
Create a dialog for obtaining a text string with the option of selecting and including special characters. Use the "showDialog()" method to activate.
Version:
$Id$
Author:
Peter W. Draper
See Also:
  • Field Details

    • textField

      protected SelectTextField textField
      The SelectText component
    • value

      protected String value
      The accepted value, null if not accepted
  • Method Details

    • showDialog

      public static String showDialog(Component component, String title, String labelText, String initialValue)
      Show a dialog window. Returning the user value as a String.
      Parameters:
      component - a parent component for the dialog, may be null
      title - the title for the dialog window
      labelText - description of the value that is to be obtained
      initialValue - the initial value to show in the text area
      Returns:
      the accepted value, or null if cancelled or the value is invalid.
    • getValue

      protected String getValue()
      Get the users value.
    • acceptValue

      protected void acceptValue()
      Accept the value.
    • closeWindow

      protected void closeWindow()
      Close the window.