Creates a new Table with a new
DefaultTableModel with the specified dimensions.
Parameters: columns - the initial column count Parameters: rows - the initial row count
Creates a Table with the supplied
TableModel and the specified TableColumnModel.
Parameters: model - the initial model Parameters: columnModel - the initial column model
Creates a TableColumnModel based on the
TableModel. This method is invoked automatically when the
TableModel's structure changes if the
autoCreateColumnsFromModel flag is set.
Returns the component rendered at the specified cell position.
Invocation will automatically perform validation if required.
Parameters: column - the column Parameters: row - the row the component
Returns the default TableCellRenderer used to render
header cells. The default header renderer will be used in the event
that a TableColumn does not provide a specific header
renderer.
the TableCellRenderer
Returns the default TableCellRenderer for the specified
column class. The default renderer will be used in the event that
a TableColumn does not provide a specific renderer.
Parameters: columnClass - the column Class the TableCellRenderer
public boolean isAutoCreateColumnsFromModel()(Code)
Determines whether the TableColumnModel will be created
automatically from the TableModel. If this flag is set,
changes to the TableModel will automatically cause the
TableColumnModel to be re-created. This flag is true
by default unless a TableColumnModel is specified in the
constructor.
true if the TableColumnModel will be createdautomatically from the TableModel
Removes an ActionListener from the Table.
ActionListeners will be invoked when the user
selects a row.
Parameters: l - the ActionListener to remove
setActionCommand
public void setActionCommand(String newValue)(Code)
Sets the action command which will be provided in
ActionEvents fired by this
Table.
Parameters: newValue - the new action command
setAutoCreateColumnsFromModel
public void setAutoCreateColumnsFromModel(boolean newValue)(Code)
Sets whether the TableColumnModel will be created
automatically from the TableModel.
Parameters: newValue - true if the TableColumnModel should be created automatically from the TableModel See Also:Table.isAutoCreateColumnsFromModel()
Sets the default TableCellRenderer used to render
header cells. The default header renderer will be used in the event
that a TableColumn does not provide a specific header
renderer.
Parameters: newValue - the TableCellRenderer
Sets the default TableCellRenderer for the specified
column class. The default renderer will be used in the event that
a TableColumn does not provide a specific renderer.
Parameters: columnClass - the column Class Parameters: newValue - the TableCellRenderer
setHeaderVisible
public void setHeaderVisible(boolean newValue)(Code)
Sets the visibility state of the table header.
Parameters: newValue - true if the header should be displayed
Sets the TableModel being visualized.
Parameters: newValue - the new model (may not be null)
setRolloverBackground
public void setRolloverBackground(Color newValue)(Code)
Sets the rollover background color displayed when the mouse is within
the bounds of a row.
Parameters: newValue - the new Color
setRolloverBackgroundImage
public void setRolloverBackgroundImage(FillImage newValue)(Code)
Sets the rollover background image displayed when the mouse is within
the bounds of a row.
Parameters: newValue - the new background image
setRolloverEnabled
public void setRolloverEnabled(boolean newValue)(Code)
Sets whether rollover effects are enabled when the mouse cursor is
within the bounds of a row. Rollover properties have no effect unless
this property is set to true. The default value is false.
Parameters: newValue - true if rollover effects should be enabled