Charles Bell
Posts: 519
Nickname: charles
Registered: Feb, 2002
|
|
Re: change the backgroundcolor of a table column
|
Posted: Jun 7, 2003 6:52 PM
|
|
Use the JTable mthod:
public TableCellRenderer getCellRenderer(int row, int column) to get the TableCellRenderer for the column.
Then use the
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) method to get the component then use setBackground(Color c) to change the color of the component
|
|