mausam
Posts: 243
Nickname: mausam
Registered: Sep, 2003
|
|
Re: How to modify cell properties of a JDBTable ?
|
Posted: Sep 11, 2003 8:24 AM
|
|
It must work
override the methods liek
public TableCellRenderer getCellRenderer(int row, int column)
{
return new DefaultTableCellRenderer ()
{
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus, int row, int column)
{
super.getTableCellRendererComponent(table, value, isSelected,hasFocus, row, column);
Color color = Color.red;
setForeground(color);
return this;
}
};
}
|
|