Home Segments Top Top Previous Next

995: Mainline

The getTableCellRendererComponent method defined for the default table-cell renderer produces left-aligned, opaque, JLabel instances.

More precisely, the getTableCellRendererComponent method returns instances of the DefaultTableCellRenderer class, but these instances are all JLabel instances as well, because DefaultTableCellRenderer extends the JLabel class. If you have selected a cell by clicking on it, the DefaultTableCellRenderer instance returned for that cell has a distinguishing border.