Skip to main content

JTabbedPane

3 replies [Last post]
Anonymous

When the tabs on a JTabbedPane are placed on the left or right side, it
would be nice if the text and icons were rotated 90 degrees one way or
the other to take up less space. Ideally this would work on Java 5.

Most approaches I have seen involve extending JTabbedPane to use a
custom rotated icon in the tabs. Whenever JTabbedPane.setTitleAt() is
called, the icon is updated. Is there an easier way to accomplish
that? I was hoping there might be a preference we could set in the UI
delegate.

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jidesoftware
Offline
Joined: 2004-10-07

Hi Bruce,

It will be one way or the other related to the TabbedPaneUI. You can take a look at JideTabbedPane at https://jide-oss.dev.java.net. It does work with almost all L&Fs since we have our own UI classes and many different styles. You can always find a style that looks good under your L&F.

http://www.jidesoft.com/images/jidetabbedpane.png

Thanks,

-David

kirillcool
Offline
Joined: 2004-11-17
Bruce Alspaugh

Is there a way to get that feature independent of the look and feel?
Perhaps it could be a feature of a JXTabbedPane. It would also be nice
to backport the ability to set an arbitrary tab component.

Bruce
jdnc-interest@javadesktop.org wrote:
> You can do it with a custom LAF
>
> https://substance.dev.java.net/docs/clientprops/TabbedPaneVerticalOrient...
> [Message sent by forum member 'kirillcool' (kirillcool)]
>
> http://forums.java.net/jive/thread.jspa?messageID=217881
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net