August 13th, 2012, 09:32 PM
How to change row colour of JTable？
What I have is a JTable of paths of files. If such a file doesn't exist then that row needs to be highlighted. I've searched around for an hour or so and get the general idea that I need to create my own custom TableCellRenderer. I know that it takes 'rows' and 'columns' as parameters but I don't know how to make use of them to access individual rows and change their colours.
August 16th, 2012, 02:06 AM
Changing row colour
Google is your friend. There are lots of references online about highlighting a row and changing its colour and so on..
Here is one of the articles:
JTable row highlighting and Decorator design pattern
When the programming world turns decent, the real world will turn upside down.