Set color of cells
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lun_Xiao
Posted On:   Thursday, April 11, 2002 03:05 PM

Hi,
How can I set certain cells in a table to a different color?
Thanks.

Lun Xiao

Re: Set color of cells

Posted By:   shautvas_t  
Posted On:   Friday, April 12, 2002 04:44 AM

that would be something like:



((DefaultTableCellRenderer)table.getCellRenderer(row,col)).setBackground(Color c)



but only if DefaultTableCellRenderer is the implementing class for TableCellRenderer

Please let me know if this is useful or why not :~)
About | Sitemap | Contact