Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to place the Tab in JTabbedPane on the right hand side of the tabbedpane

 
mahesh narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to place the Tab in JTabbedPane on the right hand side of the tabbedpane
 
clio katz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tabbedPane.setTabPlacement(JTabbedPane.RIGHT);
 
mahesh narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but how to put it at top-right hand side instead of the default top-left corner
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that No such a setting in JDK 1.4

All the setting regarding the main appearance of JTabbedPane are the following:

setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT)
setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT)

setTabPlacement(JTabbedPane.TOP)
setTabPlacement(JTabbedPane.BOTTOM)
setTabPlacement(JTabbedPane.LEFT)
setTabPlacement(JTabbedPane.RIGHT)
[ August 20, 2004: Message edited by: Pool Hays ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic