Package ca.corbett.extras.demo.panels
Class TextInputDialogPanel
java.lang.Object
ca.corbett.extras.demo.panels.PanelBuilder
ca.corbett.extras.demo.panels.TextInputDialogPanel
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 Summary
Constructors -
Method Summary
Methods inherited from class ca.corbett.extras.demo.panels.PanelBuilder
buildFormPanel, buildFormPanel, buildHighlightedHeaderLabel, createSnippetLabel, createSnippetLabel
-
Constructor Details
-
TextInputDialogPanel
public TextInputDialogPanel()
-
-
Method Details
-
getTitle
Description copied from class:PanelBuilderReturns a name for this PanelBuilder.- Specified by:
getTitlein classPanelBuilder- Returns:
- A hopefully descriptive name.
-
build
Description copied from class:PanelBuilderBuilds and returns the FormPanel (or technically any JPanel) for this builder.- Specified by:
buildin classPanelBuilder- Returns:
- A populated JPanel (or FormPanel).
-