JFormattedLabel is a label that with which you can define a field model, which can then specify a formatter, a validator, a keystroke verifier, and data attributes. The keystroke verifier has no effect on this component, because it is not a data entry-type component.
By default, JFormattedLabel uses AS400FieldModel, which uses EditcodeEditwordFormatter and ComparisonRangeValidator; the default data type is character, data length is 10, and number of decimal places is 0.
JFormattedLabel has all the behaviors of a Swing JLabel, but with some extra features. It has most of the extra features of a JFormattedTextField, but since it is not editable, some of the features do not apply. The following features do apply:
Note: The edit code and edit word properties are not restricted to numeric data as in DDS.
For additional information about Swing architecture, see the following Web site:
http://java.sun.com/products/jfc/tsc/articles/architecture/index.html
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.