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 whether tree shows a wide selection
    • setWideSelection

      public void setWideSelection(boolean wideSelection)
      Specifies whether tree shows a wide selection
    • isWideCellRenderer

      public boolean isWideCellRenderer()
      Returns whether tree uses a wide cell renderer.
      Since:
      3.6
    • setWideCellRenderer

      public void setWideCellRenderer(boolean wideCellRenderer)
      Specifies whether tree uses a wide cell renderer.
      Since:
      3.6
    • 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.