• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tab orientation

 
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to set the tab orientation to Vertical..
how can i do that?
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


not Like that.
i want that tab like
ex:
t
a
b
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic