JFormattedLabel bean

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:

For additional information about Swing architecture, see the following Web site:

http://java.sun.com/products/jfc/tsc/articles/architecture/index.html

Related reference
JFormatted beans
JFormatted beans - FieldModel
JFormattedLabelCellRenderer bean
JFormattedTextField bean
JFormattedComboBox bean
DefaultFieldModel
AS400FieldModel
Related information
JFormattedLabel