Class NumberField<T extends Number>

Type Parameters:
T - the Number type
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public final class NumberField<T extends Number> extends HintTextField
A text field for numbers. Use builder() for NumberField.Builder instances.
See Also:
  • Field Details

    • CONVERT_GROUPING_TO_DECIMAL_SEPARATOR

      public static final PropertyValue<Boolean> CONVERT_GROUPING_TO_DECIMAL_SEPARATOR
      Specifies whether NumberFields should convert a grouping separator symbol to a decimal separator symbol when typed. This solves the problem of locale controlling whether the numpad comma acts as a decimal symbol, which is usually what we want.
      • Value type: Boolean
      • Default value: true
  • Method Details