资源列表
TreeTableExample0
- A demonstration program showing the TreeTable in action.-A demonstration program showing the TreeT able in action.
FileSystemModel
- A model of the local file system, implemented as a concrete subclass of AbstractTreeTableModel. This class implements the TreeTableModel interface. -A model of the local file system. implemented as a concrete subclass of Abstract TreeTableModel. Th
1MergeSort
- An implementation of merge sort.-merge sort.
JTreeTable
- A subclass of JTable, this class can render data from a TreeTableModel.-J, this class can render data from a TreeTableMode l.
AbstractCellEditor
- A base class for CellEditors. This class handlers the list of listeners.-A base class for CellEditors. This class ha ndlers the list of listeners.
TreeTableModelAdapter
- A wrapper class that implements the TableModel interface, given both TreeTableModel and a JTree. -A wrapper class that implements the TableM PEDA interface, given both TreeTableModel and a JTree.
AbstractTreeTableModel
- A base class for TreeTableModels. This class handles the list of listeners. -A base class for TreeTableModels. This 10:48 ss handles the list of listeners.
TreeTableModel
- A new interface, extending the TreeModel interface, which describes the kind of data that can be drawn by a TreeTable. -A new interface, extending the TreeModel interface, which describes the kind of data that can be draw n by a TreeTable.
ListSelectionDemo
- Shows how to use all list selection modes, using a list selection listener that s shared between a table and list.-Shows how to use all list selection modes, using a list that s selection listener be shared tween a table and list.
TableToolTipsDemo
- The code is fairly straightforward, except perhaps for the call to convertColumnIndexToModel. That call is necessary because if the user moves the columns around, the view s index for the column doesn t match the model s index for the column. For exa
ColorRenderer
- that sets the tool tip text using the boldface code in the snippet-that sets the tool tip text using the boldfa ce code in the snippet
SelectionDemo
- SelectionDemo also has code (not included in the preceding snippet) that changes the table s selection orientation. By changing a couple of boolean values, you can make the table allow either column selections or individual cell selections, instead o