Generated by
JDiff

Class javax.swing.JTable

Documentation changed from old to new.

Changed Constructors
JTable(int, int) Documentation changed from old to new.
Constructs a JTable with numRows and numColumns of empty cells using DefaultTableModel.
JTable(Object[][], Object[]) Documentation changed from old to new.
Constructs a JTable to display the values in the two dimensional array rowData with column names columnNames.
JTable(Vector, Vector) Documentation changed from old to new.
Constructs a JTable to display the values in the Vector of Vectors rowData with column names columnNames.
JTable(TableModel) Documentation changed from old to new.
Constructs a JTable that is initialized with dm as the data model a default column model and a default selection model.
JTable(TableModel, TableColumnModel) Documentation changed from old to new.
Constructs a JTable that is initialized with dm as the data model cm as the column model and a default selection model.
JTable(TableModel, TableColumnModel, ListSelectionModel) Documentation changed from old to new.
Constructs a JTable that is initialized with dm as the data model cm as the column model and sm as the selection model.
JTable(void) Documentation changed from old to new.
Constructs a default JTable that is initialized with a default data model a default column model and a default selection model.
 

Added Methods
void changeSelection(int, int, boolean, boolean) Updates the selection models of the table depending on the state of the two flags: toggle and extend.
int getRowHeight(int) Returns the height in pixels of the cells in row.
boolean processKeyBinding(KeyStroke, KeyEvent, int, boolean)  
void setRowHeight(int, int) Sets the height for row to rowHeight revalidates and repaints.
void unconfigureEnclosingScrollPane() Reverses the effect of configureEnclosingScrollPane by replacing the columnHeaderView of the enclosing scroll pane with null.
 

Changed Methods
void addColumn(TableColumn) Documentation changed from old to new.
Appends aColumn to the end of the array of columns held by this JTable's column model.
void addColumnSelectionInterval(int, int) Documentation changed from old to new.
Adds the columns from index0 to index1 inclusive to the current selection.
void addNotify() Documentation changed from old to new.
Calls the configureEnclosingScrollPane method.
void addRowSelectionInterval(int, int) Documentation changed from old to new.
Adds the rows from index0 to index1 inclusive to the current selection.
void columnAdded(TableColumnModelEvent) Documentation changed from old to new.
Invoked when a column is added to the table column model.
int columnAtPoint(Point) Documentation changed from old to new.
Returns the index of the column that point lies in or -1 if the result is not in the range [0 getColumnCount()-1].
void columnMarginChanged(ChangeEvent) Documentation changed from old to new.
Invoked when a column is moved due to a margin change.
void columnMoved(TableColumnModelEvent) Documentation changed from old to new.
Invoked when a column is repositioned.
void columnRemoved(TableColumnModelEvent) Documentation changed from old to new.
Invoked when a column is removed from the table column model.
void columnSelectionChanged(ListSelectionEvent) Documentation changed from old to new.
Invoked when the selection model of the TableColumnModel is changed.
void configureEnclosingScrollPane() Documentation changed from old to new.
If this JTable is the viewportView of an enclosing JScrollPane (the usual situation) configure this ScrollPane by amongst other things installing the table's tableHeader as the columnHeaderView of the scroll pane.
int convertColumnIndexToModel(int) Documentation changed from old to new.
Maps the index of the column in the view at viewColumnIndex to the index of the column in the table model.
int convertColumnIndexToView(int) Documentation changed from old to new.
Maps the index of the column in the table model at modelColumnIndex to the index of the column in the view.
TableColumnModel createDefaultColumnModel() Documentation changed from old to new.
Returns the default column model object which is a DefaultTableColumnModel.
void createDefaultColumnsFromModel() Documentation changed from old to new.
Creates default columns for the table from the data model using the getColumnCount method defined in the TableModel interface.
TableModel createDefaultDataModel() Documentation changed from old to new.
Returns the default table model object which is a DefaultTableModel.
void createDefaultEditors() Documentation changed from old to new.
Creates default cell editors for objects numbers and boolean values.
void createDefaultRenderers() Documentation changed from old to new.
Creates default cell renderers for objects numbers doubles dates booleans and icons.
ListSelectionModel createDefaultSelectionModel() Documentation changed from old to new.
Returns the default selection model object which is a DefaultListSelectionModel.
JTableHeader createDefaultTableHeader() Documentation changed from old to new.
Returns the default table header object which is a JTableHeader.
void doLayout() Documentation changed from old to new.
Method was inherited from Container, but is now defined locally.
Causes this table to lay out its rows and columns.
void editingCanceled(ChangeEvent) Documentation changed from old to new.
Invoked when editing is canceled.
void editingStopped(ChangeEvent) Documentation changed from old to new.
Invoked when editing is finished.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this JTable.
boolean getAutoCreateColumnsFromModel() Documentation changed from old to new.
Determines whether the table will create default columns from the model.
int getAutoResizeMode() Documentation changed from old to new.
Returns the auto resize mode of the table.
Rectangle getCellRect(int, int, boolean) Documentation changed from old to new.
Returns a rectangle for the cell that lies at the intersection of row and column.
TableCellRenderer getCellRenderer(int, int) Documentation changed from old to new.
Returns an appropriate renderer for the cell specified by this row and column.
boolean getCellSelectionEnabled() Documentation changed from old to new.
Returns true if both row and column selection models are enabled.
TableColumn getColumn(Object) Documentation changed from old to new.
Returns the TableColumn object for the column in the table whose identifier is equal to identifier when compared using equals.
Class getColumnClass(int) Documentation changed from old to new.
Returns the type of the column appearing in the view at column position column.
int getColumnCount() Documentation changed from old to new.
Returns the number of columns in the column model.
TableColumnModel getColumnModel() Documentation changed from old to new.
Returns the TableColumnModel that contains all column information of this table.
String getColumnName(int) Documentation changed from old to new.
Returns the name of the column appearing in the view at column position column.
boolean getColumnSelectionAllowed() Documentation changed from old to new.
Returns true if columns can be selected.
TableCellEditor getDefaultEditor(Class) Documentation changed from old to new.
Returns the editor to be used when no editor has been set in a TableColumn.
TableCellRenderer getDefaultRenderer(Class) Documentation changed from old to new.
Returns the cell renderer to be used when no renderer has been set in a TableColumn.
int getEditingColumn() Documentation changed from old to new.
Returns the index of the column that contains the cell currently being edited.
int getEditingRow() Documentation changed from old to new.
Returns the index of the row that contains the cell currently being edited.
Component getEditorComponent() Documentation changed from old to new.
Returns the component that is handling the editing session.
Color getGridColor() Documentation changed from old to new.
Returns the color used to draw grid lines.
Dimension getIntercellSpacing() Documentation changed from old to new.
Returns the horizontal and vertical space between cells.
TableModel getModel() Documentation changed from old to new.
Returns the TableModel that provides the data displayed by this JTable.
Dimension getPreferredScrollableViewportSize() Documentation changed from old to new.
Returns the preferred size of the viewport for this table.
int getRowCount() Documentation changed from old to new.
Returns the number of rows in this table's model.
int getRowMargin() Documentation changed from old to new.
Gets the amount of empty space in pixels between cells.
boolean getRowSelectionAllowed() Documentation changed from old to new.
Returns true if rows can be selected.
int getScrollableBlockIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns visibleRect.height or visibleRect.width depending on this table's orientation.
int getScrollableUnitIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation).
int getSelectedColumn() Documentation changed from old to new.
Returns the index of the first selected column -1 if no column is selected.
int[] getSelectedColumns() Documentation changed from old to new.
Returns the indices of all selected columns.
int getSelectedRow() Documentation changed from old to new.
Returns the index of the first selected row -1 if no row is selected.
int getSelectedRowCount() Documentation changed from old to new.
Returns the number of selected rows.
int[] getSelectedRows() Documentation changed from old to new.
Returns the indices of all selected rows.
Color getSelectionBackground() Documentation changed from old to new.
Returns the background color for selected cells.
Color getSelectionForeground() Documentation changed from old to new.
Returns the foreground color for selected cells.
ListSelectionModel getSelectionModel() Documentation changed from old to new.
Returns the ListSelectionModel that is used to maintain row selection state.
boolean getShowHorizontalLines() Documentation changed from old to new.
Returns true if the table draws horizontal lines between cells false if it doesn't.
boolean getShowVerticalLines() Documentation changed from old to new.
Returns true if the table draws vertical lines between cells false if it doesn't.
JTableHeader getTableHeader() Documentation changed from old to new.
Returns the tableHeader used by this JTable.
TableUI getUI() Documentation changed from old to new.
Returns the L&F object that renders this component.
String getUIClassID() Documentation changed from old to new.
Returns the suffix used to construct the name of the L&F class used to render this component.
Object getValueAt(int, int) Documentation changed from old to new.
Returns the cell value at row and column.
boolean isCellEditable(int, int) Documentation changed from old to new.
Returns true if the cell at row and column is editable.
boolean isCellSelected(int, int) Documentation changed from old to new.
Returns true if the cell at the specified position is selected.
boolean isColumnSelected(int) Documentation changed from old to new.
Returns true if the column at the specified index is selected.
boolean isEditing() Documentation changed from old to new.
Returns true if a cell is being edited.
boolean isFocusTraversable() Documentation changed from old to new.
Method was inherited from JComponent, but is now defined locally.
We override this method whose implementation in JComponent returns false to return true.
boolean isManagingFocus() Documentation changed from old to new.
We override this method whose implementation in JComponent returns false to return true.
boolean isRowSelected(int) Documentation changed from old to new.
Returns true if the row at the specified index is selected.
void moveColumn(int, int) Documentation changed from old to new.
Moves the column column to the position currently occupied by the column targetColumn in the view.
String paramString() Documentation changed from old to new.
Returns a string representation of this table.
Component prepareEditor(TableCellEditor, int, int) Documentation changed from old to new.
Prepares the editor by querying the data model for the value and selection state of the cell at row column.
Component prepareRenderer(TableCellRenderer, int, int) Documentation changed from old to new.
Prepares the renderer by querying the data model for the value and selection state of the cell at row column.
void removeColumn(TableColumn) Documentation changed from old to new.
Removes aColumn from this JTable's array of columns.
void removeColumnSelectionInterval(int, int) Documentation changed from old to new.
Deselects the columns from index0 to index1 inclusive.
void removeEditor() Documentation changed from old to new.
Discards the editor object and frees the real estate it used for cell rendering.
void removeNotify() Documentation changed from old to new.
Method was inherited from JComponent, but is now defined locally.
Calls the unconfigureEnclosingScrollPane method.
void removeRowSelectionInterval(int, int) Documentation changed from old to new.
Deselects the rows from index0 to index1 inclusive.
void reshape(int, int, int, int) Documentation changed from old to new.
Method was locally defined, but is now inherited from JComponent.
Moves and resizes this component.
void resizeAndRepaint() Documentation changed from old to new.
Equivalent to revalidate followed by repaint.
int rowAtPoint(Point) Documentation changed from old to new.
Returns the index of the row that point lies in or -1 if the result is not in the range [0 getRowCount()-1].
void selectAll() Documentation changed from old to new.
Selects all rows columns and cells in the table.
void setAutoCreateColumnsFromModel(boolean) Documentation changed from old to new.
Sets this table's autoCreateColumnsFromModel flag.
void setAutoResizeMode(int) Documentation changed from old to new.
Sets the table's auto resize mode when the table is resized.
void setCellEditor(TableCellEditor) Documentation changed from old to new.
Sets the cellEditor variable.
void setCellSelectionEnabled(boolean) Documentation changed from old to new.
Sets whether this table allows both a column selection and a row selection to exist simultaneously.
void setColumnModel(TableColumnModel) Documentation changed from old to new.
Sets the column model for this table to newModel and registers for listener notifications from the new column model.
void setColumnSelectionAllowed(boolean) Documentation changed from old to new.
Sets whether the columns in this model can be selected.
void setColumnSelectionInterval(int, int) Documentation changed from old to new.
Selects the columns from index0 to index1 inclusive.
void setDefaultEditor(Class, TableCellEditor) Documentation changed from old to new.
Sets a default cell editor to be used if no editor has been set in a TableColumn.
void setDefaultRenderer(Class, TableCellRenderer) Documentation changed from old to new.
Sets a default cell renderer to be used if no renderer has been set in a TableColumn.
void setEditingColumn(int) Documentation changed from old to new.
Sets the editingColumn variable.
void setEditingRow(int) Documentation changed from old to new.
Sets the editingRow variable.
void setGridColor(Color) Documentation changed from old to new.
Sets the color used to draw grid lines to gridColor and redisplays.
void setIntercellSpacing(Dimension) Documentation changed from old to new.
Sets the rowMargin and the columnMargin -- the height and width of the space between cells -- to intercellSpacing.
void setModel(TableModel) Documentation changed from old to new.
Sets the data model for this table to newModel and registers with it for listener notifications from the new data model.
void setPreferredScrollableViewportSize(Dimension) Documentation changed from old to new.
Sets the preferred size of the viewport for this table.
void setRowMargin(int) Documentation changed from old to new.
Sets the amount of empty space between cells in adjacent rows.
void setRowSelectionAllowed(boolean) Documentation changed from old to new.
Sets whether the rows in this model can be selected.
void setRowSelectionInterval(int, int) Documentation changed from old to new.
Selects the rows from index0 to index1 inclusive.
void setSelectionBackground(Color) Documentation changed from old to new.
Sets the background color for selected cells.
void setSelectionForeground(Color) Documentation changed from old to new.
Sets the foreground color for selected cells.
void setSelectionMode(int) Documentation changed from old to new.
Sets the table's selection mode to allow only single selections a single contiguous interval or multiple intervals.
void setSelectionModel(ListSelectionModel) Documentation changed from old to new.
Sets the row selection model for this table to newModel and registers for listener notifications from the new selection model.
void setShowGrid(boolean) Documentation changed from old to new.
Sets whether the table draws grid lines around cells.
void setShowHorizontalLines(boolean) Documentation changed from old to new.
Sets whether the table draws horizontal lines between cells.
void setShowVerticalLines(boolean) Documentation changed from old to new.
Sets whether the table draws vertical lines between cells.
void setTableHeader(JTableHeader) Documentation changed from old to new.
Sets the tableHeader working with this JTable to newHeader.
void setValueAt(Object, int, int) Documentation changed from old to new.
Sets the value for the cell in the table model at row and column.
void tableChanged(TableModelEvent) Documentation changed from old to new.
Invoked when this table's TableModel generates a TableModelEvent.
void updateUI() Documentation changed from old to new.
Notification from the UIManager that the L&F has changed.
void valueChanged(ListSelectionEvent) Documentation changed from old to new.
Invoked when the row selection changes -- repaints to show the new selection.
boolean editCellAt(int, int) Documentation changed from old to new.
Programmatically starts editing the cell at row and column if the cell is editable.
boolean editCellAt(int, int, EventObject) Documentation changed from old to new.
Programmatically starts editing the cell at row and column if the cell is editable.
TableCellEditor getCellEditor() Documentation changed from old to new.
Returns the cell editor.
TableCellEditor getCellEditor(int, int) Documentation changed from old to new.
Returns an appropriate editor for the cell specified by row and column.
int getRowHeight() Documentation changed from old to new.
Returns the height of a table row in pixels.
String getToolTipText(MouseEvent) Documentation changed from old to new.
Overrides JComponent's getToolTipText method in order to allow the renderer's tips to be used if it has text set.
void setRowHeight(int) Documentation changed from old to new.
Sets the height in pixels of all cells to rowHeight revalidates and repaints.
void setUI(TableUI) Documentation changed from old to new.
Sets the L&F object that renders this component and repaints.
void sizeColumnsToFit(int) Documentation changed from old to new.
Resizes one or more of the columns in the table so that the total width of all of this JTable's columns is equal to the width of the table.
 

Changed Fields
int AUTO_RESIZE_ALL_COLUMNS Documentation changed from old to new.
During all resize operations proportionately resize all columns.
int AUTO_RESIZE_LAST_COLUMN Documentation changed from old to new.
During all resize operations apply adjustments to the last column only.
int AUTO_RESIZE_NEXT_COLUMN Documentation changed from old to new.
When a column is adjusted in the UI adjust the next column the opposite way.
int AUTO_RESIZE_OFF Documentation changed from old to new.
Do not adjust column widths automatically; use a scrollbar.
int AUTO_RESIZE_SUBSEQUENT_COLUMNS Documentation changed from old to new.
During UI adjustment change subsequent columns to preserve the total width; this is the default behavior.
boolean autoCreateColumnsFromModel Documentation changed from old to new.
The table will query the TableModel to build the default set of columns if this is true.
int autoResizeMode Documentation changed from old to new.
Determines if the table automatically resizes the width of the table's columns to take up the entire width of the table and how it does the resizing.
TableCellEditor cellEditor Documentation changed from old to new.
The object that overwrites the screen real estate occupied by the current cell and allows the user to change its contents.
boolean cellSelectionEnabled Documentation changed from old to new.
Obsolete as of Java 2 platform v1.3.
TableColumnModel columnModel Documentation changed from old to new.
The TableColumnModel of the table.
TableModel dataModel Documentation changed from old to new.
The TableModel of the table.
Hashtable defaultEditorsByColumnClass Documentation changed from old to new.
A table of objects that display and edit the contents of a cell indexed by class as declared in getColumnClass in the TableModel interface.
Hashtable defaultRenderersByColumnClass Documentation changed from old to new.
A table of objects that display the contents of a cell indexed by class as declared in getColumnClass in the TableModel interface.
Component editorComp Documentation changed from old to new.
If editing the Component that is handling the editing.
Color gridColor Documentation changed from old to new.
The color of the grid.
Dimension preferredViewportSize Documentation changed from old to new.
Used by the Scrollable interface to determine the initial visible area.
int rowHeight Documentation changed from old to new.
The height in pixels of each row in the table.
int rowMargin Documentation changed from old to new.
The height in pixels of the margin between the cells in each row.
boolean rowSelectionAllowed Documentation changed from old to new.
True if row selection is allowed in this table.
Color selectionBackground Documentation changed from old to new.
The background color of selected cells.
Color selectionForeground Documentation changed from old to new.
The foreground color of selected cells.
ListSelectionModel selectionModel Documentation changed from old to new.
The ListSelectionModel of the table used to keep track of row selections.
boolean showHorizontalLines Documentation changed from old to new.
The table draws horizontal lines between cells if showHorizontalLines is true.
boolean showVerticalLines Documentation changed from old to new.
The table draws vertical lines between cells if showVerticalLines is true.
JTableHeader tableHeader Documentation changed from old to new.
The TableHeader working with the table.