aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Tab orientation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Tab orientation" Watch "Tab orientation" New topic
Author

Tab orientation

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 290

i want to set the tab orientation to Vertical..
how can i do that?


-Chiru
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Originally posted by chiru surya:
i want to set the tab orientation to Vertical..
how can i do that?


Did you even look at the API?

yourTabbedPane.setTabPlacement( JTabbedPane.LEFT ); // or JTabbedPane.RIGHT


bitguru blog
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 290

yourTabbedPane.setTabPlacement( JTabbedPane.LEFT ); // or JTabbedPane.RIGHT

not Like that.
i want that tab like
ex:
t
a
b
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Originally posted by chiru surya:

not Like that.
i want that tab like
ex:
t
a
b


Check this out.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Originally posted by chiru surya:

not Like that.
i want that tab like
ex:
t
a
b


Well that's a separate issue from where the tabs are placed.

One quick and dirty way get what you want is:
yourTabbedPane.addTab("<html>t<br>a<br>b", theTabComponent)

The alternative is
yourTabbedPane.addTab("", customIcon, theTabComponent)
where customIcon is contains your vertical text.
See this article for decent information about how to get
vertical text (including non-Roman chars) onto an Icon.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tab orientation