• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Can tabs in JTabbedPane be oriented vertically?

 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I notice that when you place the tabs on a JTabbedPane on the side of the pane (setTabPlacement(SwingConstants.RIGHT), for example) that the text in the tabs is still horizontal, and the tabs stick out to the side. Is there any way to make the text vertical, so that the tabs are also oriented this way (and don't stick out)?
 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was just wondering about this last night. Haven't tried it yet, but found this on jguru.
[This message has been edited by Michael Hildner (edited April 27, 2001).]
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried it out. The text (and tabs) are indeed vertical, but the spacing between the letters is excessive, and theres a big gap of empty space between the top of tab and the first letter.

Originally posted by Michael Hildner:
I was just wondering about this last night. Haven't tried it yet, but found this on jguru.
[This message has been edited by Michael Hildner (edited April 27, 2001).]



[This message has been edited by Matt Senecal (edited April 27, 2001).]
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dang it. I want to do this also. I wonder if there's another way?
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although it's kinda cheezy, you can kinda fake it by using an image that is composed of vertical text. I'd like to find a better way though.
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic