Setting alignment on itunes table headers
Opened this issue · 4 comments
GoogleCodeExporter commented
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
Original comment by kenneth....@gmail.com
on 12 Dec 2009 at 2:02
- Changed state: Accepted
GoogleCodeExporter commented
Original comment by kenneth....@gmail.com
on 12 Dec 2009 at 2:02
GoogleCodeExporter commented
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:
- [Screen shot 2010-01-07 at 22.23.01.png](https://storage.googleapis.com/google-code-attachments/macwidgets/issue-146/comment-3/Screen shot 2010-01-07 at 22.23.01.png)
GoogleCodeExporter commented
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: