## Uses of Interface
javax.swing.tree.TreeCellRenderer

- Packages that use TreeCellRenderer
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.tree | Provides classes and interfaces for dealing with `javax.swing.JTree`.

- - ### Uses of TreeCellRenderer in javax.swing

    Fields in javax.swing declared as TreeCellRenderer
    Modifier and Type | Field and Description
    --- | ---
    `protected TreeCellRenderer` | JTree.`cellRenderer` The cell used to draw nodes.

    Methods in javax.swing that return TreeCellRenderer
    Modifier and Type | Method and Description
    --- | ---
    `TreeCellRenderer` | JTree.`getCellRenderer()` Returns the current `TreeCellRenderer` that is rendering each cell.

    Methods in javax.swing with parameters of type TreeCellRenderer
    Modifier and Type | Method and Description
    --- | ---
    `void` | JTree.`setCellRenderer(TreeCellRenderer x)` Sets the `TreeCellRenderer` that will be used to draw each cell.

  - ### Uses of TreeCellRenderer in javax.swing.plaf.basic

    Fields in javax.swing.plaf.basic declared as TreeCellRenderer
    Modifier and Type | Field and Description
    --- | ---
    `protected TreeCellRenderer` | BasicTreeUI.`currentCellRenderer` Renderer that is being used to do the actual cell drawing.

    Methods in javax.swing.plaf.basic that return TreeCellRenderer
    Modifier and Type | Method and Description
    --- | ---
    `protected TreeCellRenderer` | BasicTreeUI.`createDefaultCellRenderer()` Returns the default cell renderer that is used to do the stamping of each node.
    `protected TreeCellRenderer` | BasicTreeUI.`getCellRenderer()` Return currentCellRenderer, which will either be the trees renderer, or defaultCellRenderer, which ever wasn't null.

    Methods in javax.swing.plaf.basic with parameters of type TreeCellRenderer
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | BasicTreeUI.`setCellRenderer(TreeCellRenderer tcr)` Sets the TreeCellRenderer to `tcr`.

  - ### Uses of TreeCellRenderer in javax.swing.tree

    Classes in javax.swing.tree that implement TreeCellRenderer
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultTreeCellRenderer` Displays an entry in a tree.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.