nigelht/macwidgets

Setting alignment on itunes table headers

Opened this issue · 4 comments

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:

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

  • Changed state: Accepted

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

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:

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: