wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes newbie: displaytag and Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "newbie: displaytag and Java" Watch "newbie: displaytag and Java" New topic
Author

newbie: displaytag and Java

Yile Ku
Greenhorn

Joined: Jan 27, 2011
Posts: 13
I am taking over some code and I want to set the background color of the rows of a table according to a value in one of the columns. I know I need to add a function called addRowClass to the TableDecorator, but I am not sure how to get the values in each of the columns for that row and then set the row color using Java. Any help is appreciated.
M-
 
Don't get me started about those stupid light bulbs.
 
subject: newbie: displaytag and Java
 
Similar Threads
Varaible row count in JTable
cell renderer trouble
Table Row Selection problem while adding any Image in a JTable
make uneditable cell a different color
set rows color in JTable