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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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-
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: newbie: displaytag and Java
 
Similar Threads
make uneditable cell a different color
Varaible row count in JTable
Table Row Selection problem while adding any Image in a JTable
set rows color in JTable
cell renderer trouble