Module java.desktop
Package javax.swing.table
Provides classes and interfaces for dealing with
javax.swing.JTable
.
JTable
is Swing's grid or tabular view for constructing user
interfaces for tabular data structures inside an application. Use this
package if you want control over how tables are constructed, updated, and
rendered, as well as how data associated with the tables are viewed and
managed.
Note: Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation, please see:- How to Use Tables, a section in The Java Tutorial
- Since:
- 1.2
-
Interface Summary Interface Description TableCellEditor This interface defines the method any object that would like to be an editor of values for components such asJListBox
,JComboBox
,JTree
, orJTable
needs to implement.TableCellRenderer This interface defines the method required by any object that would like to be a renderer for cells in aJTable
.TableColumnModel Defines the requirements for a table column model object suitable for use withJTable
.TableModel TheTableModel
interface specifies the methods theJTable
will use to interrogate a tabular data model. -
Class Summary Class Description AbstractTableModel This abstract class provides default implementations for most of the methods in theTableModel
interface.DefaultTableCellRenderer The standard class for rendering (displaying) individual cells in aJTable
.DefaultTableCellRenderer.UIResource A subclass ofDefaultTableCellRenderer
that implementsUIResource
.DefaultTableColumnModel The standard column-handler for aJTable
.DefaultTableModel This is an implementation ofTableModel
that uses aVector
ofVectors
to store the cell value objects.JTableHeader This is the object which manages the header of theJTable
.TableColumn ATableColumn
represents all the attributes of a column in aJTable
, such as width, resizability, minimum and maximum width.TableRowSorter<M extends TableModel> An implementation ofRowSorter
that provides sorting and filtering using aTableModel
.TableStringConverter TableStringConverter is used to convert objects from the model into strings.