Displays a matrix of items.
Displays a matrix of items.
To obtain a scrollable table or row and columns headers, wrap the table in a scroll pane.
- See also
javax.swing.JTable
- Companion
- object
Type members
Value members
Constructors
Constructs a table component with static cell contents. The contents is editable.
Constructs a table component with static cell contents. The contents is editable.
- Value Params
- columnNames
objects that represent the column names. The names are derived by calling
toString
on the elements. The size of this sequence must correspond with the inner dimension ofrowData
.- rowData
the table contents, where the first dimension indexes rows, and the second dimension indexes columns.
Constructs a table component with a DefaultTableModel
of the given dimensions.
Constructs a table component with a DefaultTableModel
of the given dimensions.
Concrete methods
Gets the current value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.
Gets the current value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.
If you have model coordinates, use model.getValueAt
instead.
Programmatically sets the sorted column of the table view.
Programmatically sets the sorted column of the table view.
Changes the value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.
Changes the value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.
If you have model coordinates, use model.setValueAt
instead.
Inherited methods
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
Listen to the given publisher as long as deafTo
isn't called for
them.
Listen to the given publisher as long as deafTo
isn't called for
them.
- Inherited from
- Reactor
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
- Inherited from
- Component