Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I have a JTable in which I use JList as a row header. I want to
display some rows headers in red based on data read from a file.
Currently, I have rows alternating colors between gray and white. I
put in the logic to see which rows have to be colored red, logic seems
to work, but renderer acting strange. If let's say I have 6 rows and
it turns out that rows 6, 4 and 2 have to be colored red, only 6th row
will be colored, but 4 and 2 will not. If I alter data so that only
rows 4 and 2 are in red, row 4 will be colored red but not two. What
seems to be happening is that of all rows to be colored only the last
one is being colored. Can anyone help?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic