Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tab orientation

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to set the tab orientation to Vertical..
how can i do that?
 
Brian Cole
Author
Ranch Hand
Posts: 906
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yourTabbedPane.setTabPlacement( JTabbedPane.LEFT ); // or JTabbedPane.RIGHT

not Like that.
i want that tab like
ex:
t
a
b
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chiru surya:

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


Check this out.
 
Brian Cole
Author
Ranch Hand
Posts: 906
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic