| 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 TableColumnModel |
JTable.columnModel
The
TableColumnModel of the table.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableColumnModel |
JTable.createDefaultColumnModel()
Returns the default column model object, which is a
DefaultTableColumnModel.
|
TableColumnModel |
JTable.getColumnModel()
Returns the
TableColumnModel that contains all column information of this table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTable.setColumnModel(TableColumnModel
Sets the column model for this table to
newModel and registers for listener notifications from the new column model.
|
| Constructor and Description | |
|---|---|
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 | |
|---|---|
TableColumnModelEvent(TableColumnModel
Constructs a
TableColumnModelEvent object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTableColumnModel
The standard column-handler for a
JTable.
|
| Modifier and Type | Field and Description |
|---|---|
protected TableColumnModel |
JTableHeader.columnModel
The
TableColumnModel of the table header.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableColumnModel |
JTableHeader.createDefaultColumnModel()
Returns the default column model object which is a
DefaultTableColumnModel.
|
TableColumnModel |
JTableHeader.getColumnModel()
Returns the
TableColumnModel that contains all column information of this table header.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTableHeader.setColumnModel(TableColumnModel
Sets the column model for this table to
newModel and registers for listener notifications from the new column model.
|
| Constructor and Description | |
|---|---|
JTableHeader(TableColumnModel
Constructs a
JTableHeader which is initialized with
cm as the column model.
|