Where Am I? Class Hierarchy (JFC) All Classes (JFC)

Class com.sun.java.swing.table.DefaultTableCellRenderer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JLabel
                                   |
                                   +----com.sun.java.swing.table.DefaultTableCellRenderer

public class DefaultTableCellRenderer
extends JLabel
implements TableCellRenderer, Serializable

The standard class for rendering (displaying) individual cells in a JTable.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.

See Also:
JTable

Variable Index

noFocusBorder

Constructor Index

DefaultTableCellRenderer()

Method Index

getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int)
setBackground(Color)
setForeground(Color)
setValue(Object)
updateUI()
Notification from the UIFactory that the L&F has changed.

Variables

noFocusBorder
 protected static Border noFocusBorder

Constructors

DefaultTableCellRenderer
 public DefaultTableCellRenderer()

Methods

setForeground
 public void setForeground(Color c)
Overrides:
setForeground in class Component
setBackground
 public void setBackground(Color c)
Overrides:
setBackground in class Component
updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JLabel
getTableCellRendererComponent
 public Component getTableCellRendererComponent(JTable table,
                                                Object value,
                                                boolean isSelected,
                                                boolean hasFocus,
                                                int row,
                                                int column)
setValue
 protected void setValue(Object value)

Where Am I? Class Hierarchy (JFC) All Classes (JFC)