Class FlatTree

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

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

    • FlatTree

      public FlatTree()
  • Method Details

    • isWideSelection

      public boolean isWideSelection()
      Returns if the tree shows a wide selection
    • setWideSelection

      public void setWideSelection(boolean wideSelection)
      Sets if the tree shows a wide selection
    • isPaintSelection

      public boolean isPaintSelection()
      Returns whether tree item selection is painted. Default is true. If set to false, then the tree cell renderer is responsible for painting selection.
    • setPaintSelection

      public void setPaintSelection(boolean paintSelection)
      Specifies whether tree item selection is painted. Default is true. If set to false, then the tree cell renderer is responsible for painting selection.