Uses of Interface
javax.swing.table.TableCellRenderer
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces for dealing with
javax.swing.JTable
.-
Uses of TableCellRenderer in javax.swing
Modifier and TypeMethodDescriptionJTable.getCellRenderer
(int row, int column) Returns an appropriate renderer for the cell specified by this row and column.JTable.getDefaultRenderer
(Class<?> columnClass) Returns the cell renderer to be used when no renderer has been set in aTableColumn
.Modifier and TypeMethodDescriptionJTable.prepareRenderer
(TableCellRenderer renderer, int row, int column) Prepares the renderer by querying the data model for the value and selection state of the cell atrow
,column
.void
JTable.setDefaultRenderer
(Class<?> columnClass, TableCellRenderer renderer) Sets a default cell renderer to be used if no renderer has been set in aTableColumn
. -
Uses of TableCellRenderer in javax.swing.table
Modifier and TypeClassDescriptionclass
The standard class for rendering (displaying) individual cells in aJTable
.static class
A subclass ofDefaultTableCellRenderer
that implementsUIResource
.Modifier and TypeFieldDescriptionprotected TableCellRenderer
TableColumn.cellRenderer
The renderer used to draw the data cells of the column.protected TableCellRenderer
TableColumn.headerRenderer
The renderer used to draw the header of the column.Modifier and TypeMethodDescriptionprotected TableCellRenderer
TableColumn.createDefaultHeaderRenderer()
As of Java 2 platform v1.3, this method is not called by theTableColumn
constructor.protected TableCellRenderer
JTableHeader.createDefaultRenderer()
Returns a default renderer to be used when no header renderer is defined by aTableColumn
.TableColumn.getCellRenderer()
Returns theTableCellRenderer
used by theJTable
to draw values for this column.JTableHeader.getDefaultRenderer()
Returns the default renderer used when noheaderRenderer
is defined by aTableColumn
.TableColumn.getHeaderRenderer()
Returns theTableCellRenderer
used to draw the header of theTableColumn
.Modifier and TypeMethodDescriptionvoid
TableColumn.setCellRenderer
(TableCellRenderer cellRenderer) Sets theTableCellRenderer
used byJTable
to draw individual values for this column.void
JTableHeader.setDefaultRenderer
(TableCellRenderer defaultRenderer) Sets the default renderer to be used when noheaderRenderer
is defined by aTableColumn
.void
TableColumn.setHeaderRenderer
(TableCellRenderer headerRenderer) Sets theTableCellRenderer
used to draw theTableColumn
's header toheaderRenderer
.ModifierConstructorDescriptionTableColumn
(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor) Creates and initializes an instance ofTableColumn
with the specified model index, width, cell renderer, and cell editor; allTableColumn
constructors delegate to this one.