com.jgoodies.validation.tutorial.formatted
Class DateExample
java.lang.Object
com.jgoodies.validation.tutorial.util.TutorialApplication
com.jgoodies.validation.tutorial.formatted.DateExample
public final class DateExample
- extends TutorialApplication
Demonstrates different configurations of JFormattedTextField
to display and edit numbers. Shows
- how to use a custom DateFormat
- how to use a custom DateFormatter
- how to use a custom FormatterFactory
- how to reset a date to
null
- how to map the empty string to a special date
- how to commit values on valid texts
To look under the hood of this component, this class exposes
the bound properties text, value and editValid.
- Version:
- $Revision: 1.21 $
- Author:
- Karsten Lentzsch
- See Also:
JFormattedTextField
,
JFormattedTextField.AbstractFormatter
Method Summary |
JComponent |
buildPanel()
Builds and returns a panel with a header row and the sample rows. |
static void |
main(String[] args)
|
protected void |
startup(String[] args)
Starts this application when the application is launched. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateExample
public DateExample()
main
public static void main(String[] args)
startup
protected void startup(String[] args)
- Description copied from class:
TutorialApplication
- Starts this application when the application is launched.
A typical application creates and shows the GUI in this method.
This method runs on the event dispatching thread.
Called by the static launch
method.
- Specified by:
startup
in class TutorialApplication
- Parameters:
args
- optional launch arguments, often the main method's arguments.- See Also:
TutorialApplication.launch(Class, String[])
buildPanel
public JComponent buildPanel()
- Builds and returns a panel with a header row and the sample rows.
- Returns:
- the example panel with a header and the sample rows
Copyright © 2003-2008 JGoodies Karsten Lentzsch. All Rights Reserved.