Class FlatSpinner

All Implemented Interfaces:
FlatComponentExtension, FlatStyleableComponent, ImageObserver, MenuContainer, Serializable, Accessible

public class FlatSpinner extends JSpinner implements FlatComponentExtension, FlatStyleableComponent
Subclass of JSpinner that provides easy access to FlatLaf specific client properties.
See Also:
  • Constructor Details

    • FlatSpinner

      public FlatSpinner()
  • Method Details

    • getMinimumWidth

      public int getMinimumWidth()
      Returns minimum width of a component.
    • setMinimumWidth

      public void setMinimumWidth(int minimumWidth)
      Specifies minimum width of a component.
    • isRoundRect

      public boolean isRoundRect()
      Returns whether the component is painted with round edges.
    • setRoundRect

      public void setRoundRect(boolean roundRect)
      Specifies whether the component is painted with round edges.
    • getOutline

      public Object getOutline()
      Returns the outline color of the component border.
    • setOutline

      public void setOutline(Object outline)
      Specifies the outline color of the component border.

      Allowed Values are:

      • null
      • string "error"
      • string "warning"
      • any color (type Color)
      • an array of two colors (type Color[2]) where the first color is for focused state and the second for unfocused state