Skip to Content
0
Former Member
Dec 13, 2004 at 02:35 PM

CellRenderer for "setStyleForCell" ?

30 Views

Hello to All,

my question is really simple. I like to render some cells in a specific design, depending on their values in a Table.

Example: all values above 50 getting TableCellStyle.GOODVALUE_MEDIUM all other get TableCellStyle.BADVALUE_MEDIUM

I thought that I could take a CellRenderer for this, but doesn´t work. But going to the JSP directly is a problem. Wherer I can get the Row and Collumns? Is there an easy code snippet that I could use?

Regards,

Marcus