Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTabbedPane

 
tuni kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m very new in Swing, can any one help me make tabs placement in the Top right side!!! i hv used the tab placement argument "Right" but it comes in the corner right side. I want how the Top tab palcement argument comes but i should be in right side.

SO help me plzzz
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tabbedPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

but you'll need to add your tabs in the reverse order.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tuni,

Using word abbreviations like "plzzz" and "hv" only cause more confusion, especially since a great deal of our member base don't speak English as their first language and often times use translator programs that don't know anything about such words. Please read this for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic