Hi
I am using a TableCellEditor for my JTable , where i am setting the backgroung color of the component . My OS is windows XP and it works fine if i am using the Windows Classic Style theme .
But if i shift to Windows XP themes (default windows provides) , background color is not set properly.
Here is peice of TableCellEditor
public Component getTableCellEditorComponent (JTable table,
Object value, boolean isSelected, int row, int column)
{
final JComponent comp = (JComponent) super
.getTableCellEditorComponent(table, value, isSelected, row,
column);
comp.setBackground(new Color(250, 250, 150));
return comp;
}
Any help on this would be appreciated .
thanks
Sreenath