资源列表
TableRenderDemo
- Setting and Changing Column Widths By default, all columns in a table start out with equal width, and the columns automatically fill the entire width of the table. When the table becomes wider or narrower (which might happen when the user resizes
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
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
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
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.
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.
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.
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.
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.
JTreeTable
- A subclass of JTable, this class can render data from a TreeTableModel.-J, this class can render data from a TreeTableMode l.
1MergeSort
- An implementation of merge sort.-merge sort.
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