Class FlatScrollPane

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

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

    • FlatScrollPane

      public FlatScrollPane()
  • Method Details

    • isShowButtons

      public boolean isShowButtons()
      Returns whether the decrease/increase arrow buttons of a scrollbar are shown.
    • setShowButtons

      public void setShowButtons(boolean showButtons)
      Specifies whether the decrease/increase arrow buttons of a scrollbar are shown.
    • isSmoothScrolling

      public boolean isSmoothScrolling()
      Returns whether the scroll pane uses smooth scrolling.
    • setSmoothScrolling

      public void setSmoothScrolling(boolean smoothScrolling)
      Specifies whether the scroll pane uses smooth scrolling.
    • 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