com.jgoodies.validation.tutorial.formatted
Class NumberExample

java.lang.Object
  extended by com.jgoodies.validation.tutorial.util.TutorialApplication
      extended by com.jgoodies.validation.tutorial.formatted.NumberExample

public final class NumberExample
extends TutorialApplication

Demonstrates different configurations of JFormattedTextField to display and edit numbers. Shows

To look under the hood of this component, this class exposes the bound properties text, value and editValid.

Version:
$Revision: 1.22 $
Author:
Karsten Lentzsch
See Also:
JFormattedTextField, JFormattedTextField.AbstractFormatter

Constructor Summary
NumberExample()
           
 
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 com.jgoodies.validation.tutorial.util.TutorialApplication
createFrame, initializeLookAndFeel, launch, locateOnOpticalScreenCenter, packAndShowOnScreenCenter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberExample

public NumberExample()
Method Detail

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.