This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie: displaytag and Java
 
Similar Threads
cell renderer trouble
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