| 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.event |
Provides for events fired by Swing components.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable.
|
| Modifier and Type | Field and Description |
|---|---|
protected TableModel |
JTable.dataModel
The
TableModel of the table.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableModel |
JTable.createDefaultDataModel()
Returns the default table model object, which is a
DefaultTableModel.
|
TableModel |
JTable.getModel()
Returns the
TableModel that provides the data displayed by this
JTable.
|
| Modifier and Type | Method and Description |
|---|---|
RowSorter |
JTable.getRowSorter()
Returns the object responsible for sorting.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTable.setModel(TableModel
Sets the data model for this table to
newModel and registers with it for listener notifications from the new data model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTable.setRowSorter(RowSorter
Sets the
RowSorter.
|
| Constructor and Description | |
|---|---|
JTable(TableModel
Constructs a
JTable that is initialized with
dm as the data model, a default column model, and a default selection model.
|
|
JTable(TableModel
Constructs a
JTable that is initialized with
dm as the data model,
cm as the column model, and a default selection model.
|
|
JTable(TableModel
Constructs a
JTable that is initialized with
dm as the data model,
cm as the column model, and
sm as the selection model.
|
| Constructor and Description | |
|---|---|
TableModelEvent(TableModel
All row data in the table has changed, listeners should discard any state that was based on the rows and requery the
TableModel to get the new row count and all the appropriate values.
|
|
TableModelEvent(TableModel
This row of data has been updated.
|
|
TableModelEvent(TableModel
The data in rows [
firstRow,
lastRow] have been updated.
|
|
TableModelEvent(TableModel
The cells in column
column in the range [
firstRow,
lastRow] have been updated.
|
|
TableModelEvent(TableModel
The cells from (firstRow, column) to (lastRow, column) have been changed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TableRowSorter<M extends TableModel
An implementation of
RowSorter that provides sorting and filtering using a
TableModel.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTableModel
This abstract class provides default implementations for most of the methods in the
TableModel interface.
|
class |
DefaultTableModel
This is an implementation of
TableModel that uses a
Vector of
Vectors to store the cell value objects.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
TableStringConverter.toString(TableModel
Returns the string representation of the value at the specified location.
|