Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to change size of JTabbedPane in JFrame?

843806Oct 17 2008 — edited Oct 19 2008
Hi,
I would like to ask is it possible to change the position and size of JTabbedPane? Just like JPanel dose that I always use :
panel.setLayout(null); panel.setBounds(x,y,h,w);
to set position and size. But when I use:
tabbedpane.setLayout(null);
[ java.lang.ArrayIndexOutOfBoundsException: 0 ] exception caught. Same thing happening when I try to use GridLayout.
I want to make the JTabbedPane about 1/3 height of JFrame and then place it at the middle with other Panels at top and bottom.
Is there any other approach? Such as separate JFrame into 3 parts or using other Layout.
Thank you very much.
Best regards,
Philip
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2008
Added on Oct 17 2008
5 comments
754 views