Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 289

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: 289

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: 10167
    
    8

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
 
Similar Threads
Disadvanteges of android:configChanges="orientation|keyboardHidden"
To enable landscape finish for taking printout using java script
how to build swing applications with bidirectional support
What is right and wrong?
Using javax,print to print custom sized images