casbase.blogg.se

How to use format factory tutorial
How to use format factory tutorial













how to use format factory tutorial how to use format factory tutorial

If the possible values of a formatted text field have an obvious order, use a spinner instead. For example, you can specify a mask for typing phone numbers in a particular format, such as (XX) X-XX-XX-XX-XX. Another kind of formatter enables you to use a character mask to specify the set of characters that can be typed at each position in the field. Using the formatters that Swing provides, you can set up formatted text fields to type dates and numbers in localized formats. The formatter translates the field's value into the text it displays, and the text into the field's value. JFormattedTextField class adds a formatter and an object value to the features inherited from the JTextField class. Formatted text fields provide a way for developers to specify the valid set of characters that can be typed in a text field.















How to use format factory tutorial