tonykwok / macwidgets

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

Setting alignment on itunes table headers #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Would like this to work.  Currently right aligned table headers stay left 
aligned.

ITunesTableHeaderRenderer header = new ITunesTableHeaderRenderer(table); 
header.setHorizontalAlignment(SwingConstants.RIGHT); 
table.getColumnModel().getColumn(2).setHeaderRenderer(header);

The attached patch should help.

Original issue reported on code.google.com by voidstar@gmail.com on 11 Dec 2009 at 7:27

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 12 Dec 2009 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 12 Dec 2009 at 2:02

GoogleCodeExporter commented 9 years ago
Patch does not work if a column is sortable and header is right aligned. Sort 
triangle and text are overlapping. 
See attached example 

Original comment by bsch...@gmail.com on 7 Jan 2010 at 9:23

Attachments:

GoogleCodeExporter commented 9 years ago
Here's patch that supports the sort triangle, a bit hackish but functional :)

btw, I finally got around to releasing my app that uses macwidgets.
Mind if I link to it on the "who's using mac widgets" page?
http://code.google.com/p/jarzilla/

Original comment by voidstar@gmail.com on 16 Mar 2010 at 5:43

Attachments: