align right in itunes table header

2 views
Skip to first unread message

depsypher

unread,
Dec 9, 2009, 1:22:32 AM12/9/09
to Mac Widgets for Java
Is there any way to right-align a table header? This fails for me
(stays left aligned):

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

Ken Orr

unread,
Dec 10, 2009, 10:34:18 PM12/10/09
to mac-widget...@googlegroups.com
Hi depsypher,

There isn't currently a way to do this. You can submit an enhancement request here:


-Ken


--

You received this message because you are subscribed to the Google Groups "Mac Widgets for Java" group.
To post to this group, send email to mac-widget...@googlegroups.com.
To unsubscribe from this group, send email to mac-widgets-for-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mac-widgets-for-java?hl=en.



depsypher

unread,
Dec 11, 2009, 2:33:39 AM12/11/09
to Mac Widgets for Java
Thanks Ken,

I've created an issue and attached a patch that fixes it:
http://code.google.com/p/macwidgets/issues/detail?id=146

Also, just curious if another official release is planned soon. I'm
building a jar from source currently because the current release has
issues on snow leopard.

On Dec 10, 7:34 pm, Ken Orr <kenneth....@gmail.com> wrote:
> Hi depsypher,
>
> There isn't currently a way to do this. You can submit an enhancement
> request here:
>
> http://code.google.com/p/macwidgets/issues/list
>
> -Ken
>
>
>
> On Tue, Dec 8, 2009 at 10:22 PM, depsypher <voids...@gmail.com> wrote:
> > Is there any way to right-align a table header?  This fails for me
> > (stays left aligned):
>
> > ITunesTableHeaderRenderer header = new ITunesTableHeaderRenderer
> > (table);
> > header.setHorizontalAlignment(SwingConstants.RIGHT);
> > table.getColumnModel().getColumn(2).setHeaderRenderer(header);
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Mac Widgets for Java" group.
> > To post to this group, send email to mac-widget...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to
> > mac-widgets-for-...@googlegroups.com<mac-widgets-for-java%2Bun subs...@googlegroups.com>
> > .

Ken Orr

unread,
Dec 12, 2009, 9:01:58 AM12/12/09
to mac-widget...@googlegroups.com
I don't have an official date for the next release yet, but you can get the latest developer build here:


-Ken

To unsubscribe from this group, send email to mac-widgets-for-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages