wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes How to place the Tab in JTabbedPane on the right hand side of the tabbedpane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to place the Tab in JTabbedPane on the right hand side of the tabbedpane" Watch "How to place the Tab in JTabbedPane on the right hand side of the tabbedpane" New topic
Author

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

mahesh narayan
Ranch Hand

Joined: Aug 12, 2003
Posts: 41
How to place the Tab in JTabbedPane on the right hand side of the tabbedpane
clio katz
Ranch Hand

Joined: Apr 30, 2004
Posts: 101
tabbedPane.setTabPlacement(JTabbedPane.RIGHT);
mahesh narayan
Ranch Hand

Joined: Aug 12, 2003
Posts: 41
but how to put it at top-right hand side instead of the default top-left corner
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
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 ]

Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
 
Consider Paul's rocket mass heater.
 
subject: How to place the Tab in JTabbedPane on the right hand side of the tabbedpane