| 接口 | 描述 | 
|---|---|
| MutableTreeNode | 
           定义可以通过添加或删除子节点或通过更改存储在节点中的用户对象的内容来更改的树节点对象的要求。 
          | 
| RowMapper | 
           定义将树中的路径转换为显示行的对象的要求。 
          | 
| TreeCellEditor | 
           添加到CellEditor在树中配置编辑器所需的扩展。 
          | 
| TreeCellRenderer | 
           定义显示树节点的对象的要求。 
          | 
| TreeModel | 
           该模型使用 
           JTree。 | 
| TreeNode | 
           定义可以用作JTree中的树节点的对象的要求。 
          | 
| TreeSelectionModel | 
           此接口表示树组件选择的当前状态。 
          | 
| 类 | 描述 | 
|---|---|
| AbstractLayoutCache |  
          警告:此类的序列化对象与将来的Swing版本不兼容。 
          | 
| AbstractLayoutCache.NodeDimensions | 
           由 
           AbstractLayoutCache用于确定特定节点的大小和x起点。 | 
| DefaultMutableTreeNode | 
           A 
           DefaultMutableTreeNode是树形数据结构中的通用节点。 | 
| DefaultTreeCellEditor | 
           A 
           TreeCellEditor。 | 
| DefaultTreeCellRenderer | 
           在树中显示一个条目。 
          | 
| DefaultTreeModel | 
           一个使用TreeNodes的简单树数据模型。 
          | 
| DefaultTreeSelectionModel | 
           TreeSelectionModel的默认实现。 
          | 
| FixedHeightLayoutCache | 
           注意:在将来的版本中这将变得更加开放。 
          | 
| TreePath | TreePath表示唯一标识树中某个节点的路径的对象数组。 | 
| VariableHeightLayoutCache | 
           注意:在将来的版本中这将变得更加开放。 
          | 
| 异常 | 描述 | 
|---|---|
| ExpandVetoException | 
           用于停止和展开/崩溃的异常发生。 
          | 
javax.swing.JTree类和javax.swing.JTree 。 
    如果要控制树的构造,更新和渲染以及如何查看和管理与树节点相关联的数据,则可以使用这些类和接口。 
    注意:大多数Swing API 不是线程安全的。 有关详细信息,请参阅Threads and Swing ,在部分The Java Tutorial 。
 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.