Constructs a table component with a given model.
Constructs a table component with a DefaultTableModel
of the given dimensions.
Constructs a table component with static cell contents.
Constructs a table component with static cell contents. The contents is editable.
the table contents, where the first dimension indexes rows, and the second dimension indexes columns.
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 of rowData
.
This trait is used to redirect certain calls from the peer to the wrapper and back.
This trait is used to redirect certain calls from the peer to the wrapper and back. Useful to expose methods that can be customized by overriding.
Gets the current value of the given cell.
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.
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
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.
Contains publishers for various mouse events.
Contains publishers for various mouse events. They are separated for efficiency reasons.
For custom painting, users should usually override this method.
For custom painting, users should usually override this method.
The underlying Swing peer.
The underlying Swing peer.
Notify all registered reactions.
Notify all registered reactions.
All reactions of this reactor.
All reactions of this reactor.
Supplies a renderer component for a given cell.
Supplies a renderer component for a given cell.
Programmatically sets the sorted column of the table view.
Changes the value of the given cell.
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.
Visually updates the given cell.
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.
Displays a matrix of items.
To obtain a scrollable table or row and columns headers, wrap the table in a scroll pane.
javax.swing.JTable