mthomason12 / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

ITunesTableUI and alternating row colors in JXTreeTable #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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