Class TextInputDialogPanel

java.lang.Object
ca.corbett.extras.demo.panels.PanelBuilder
ca.corbett.extras.demo.panels.TextInputDialogPanel

public class TextInputDialogPanel extends PanelBuilder
A demo panel for showing off the new TextInputDialog. Very similar to JOptionPane's showInputDialog, but with optional configurable validation on the allowed input. This dialog allows you to get either single-line or multi-line text input from the user, and will not allow the user to confirm until the input is valid according to the provided validators.
Since:
swing-extras 2.8
Author:
scorbo2
  • Constructor Details

    • TextInputDialogPanel

      public TextInputDialogPanel()
  • Method Details

    • getTitle

      public String getTitle()
      Description copied from class: PanelBuilder
      Returns a name for this PanelBuilder.
      Specified by:
      getTitle in class PanelBuilder
      Returns:
      A hopefully descriptive name.
    • build

      public JPanel build()
      Description copied from class: PanelBuilder
      Builds and returns the FormPanel (or technically any JPanel) for this builder.
      Specified by:
      build in class PanelBuilder
      Returns:
      A populated JPanel (or FormPanel).