Home Segments Top Top Previous Next

1003: Mainline

The parameters in the getTableCellRendererComponent have obvious roles. The table parameter enables you to access the table whose cells are being rendered. The value parameter is assigned to the class instance in the cell. The isSelected parameter is true if the cell has been selected with a mouse click. The hasFocus parameter is true if the cell is the component currently receiving mouse clicks. And the row and column parameters indicate the location of the cell in the table, with the upper-left corner being row 0 and column 0.