nigelht/macwidgets

ITunesTableUI and alternating row colors in JXTreeTable

Opened this issue · 2 comments

I tried using the ITunesTableUI class in combination with the JXTreeTable class 
from SwingLabs. 
Everything seems to work perfectly fine, except for the alternating row color. 
It does not show 
through the "wrapped" cell renderer that JXTreeTable is creating. I think it 
would be very good if 
the UI delegate would also work for this "standard" tree table implementation.

Please let me know if you already know of any work-around for this issue.

Dirk

Original issue reported on code.google.com by dlemmermann@gmail.com on 22 Dec 2009 at 4:39

Attachments:

I found a work-around. All I had to do was to set a "Highlighter" on 
JXTreeTable:

table.setHighlighters(HighlighterFactory.createAlterantiveStriping(Color.WHITE, 
new
Color(241,245,250));

BTW, I have to copy the color values for the light blue rows from your code. It 
would
be nice if they were defined public somewhere.

Dirk

Original comment by dlemmermann@gmail.com on 23 Dec 2009 at 2:12

Original comment by kenneth....@gmail.com on 10 Jan 2010 at 10:27

  • Changed state: Accepted