Results 1 to 4 of 4
- 08-14-2012, 03:31 AM #1
Member
- Join Date
- Aug 2012
- Posts
- 2
- Rep Power
- 0
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.
Thanks.
- 08-14-2012, 04:22 AM #2
- 08-14-2012, 04:24 AM #3
Re: How to change row colour of JTable?
Why do they call it rush hour when nothing moves? - Robin Williams
- 08-14-2012, 04:38 AM #4
Member
- Join Date
- Aug 2012
- Posts
- 2
- Rep Power
- 0
Re: How to change row colour of JTable?
Similar Threads
-
JTable validate already existing JTable data and set Background colour issue
By pi4r0n in forum AWT / SwingReplies: 4Last Post: 04-02-2012, 07:57 PM -
Need guidance on how to change colour of a row in JTable.
By rhexis in forum New To JavaReplies: 8Last Post: 02-17-2012, 05:42 AM -
swing passwordField to change jPanel background colour
By cromie11 in forum New To JavaReplies: 4Last Post: 05-30-2011, 02:53 AM -
Change colour of JOptionPane
By chirag123 in forum AWT / SwingReplies: 1Last Post: 05-03-2011, 02:48 AM -
[SOLVED] Change text colour on conditions in netbeans
By dbashby in forum New To JavaReplies: 0Last Post: 03-26-2009, 01:23 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks