File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
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
posted
Aug 13, 2004 23:38:00
0
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
posted
Aug 14, 2004 16:26:00
0
tabbedPane.setTabPlacement(JTabbedPane.RIGHT);
mahesh narayan
Ranch Hand
Joined: Aug 12, 2003
Posts: 41
posted
Aug 19, 2004 06:31:00
0
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
posted
Aug 20, 2004 11:08:00
0
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>
I agree. Here's the link:
http://jrebel.com/download
subject: How to place the Tab in JTabbedPane on the right hand side of the tabbedpane
Similar Threads
JTabbedPane pblm.
JTabbedPane pblm.
Default tab setting in Swing
JTabbedPane pblm.
How to place components beneath tabs in right oriented JTabbedPane
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter