This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JtabbedPanes problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JtabbedPanes problem?" Watch "JtabbedPanes problem?" New topic
Author

JtabbedPanes problem?

rudyten
Greenhorn

Joined: Jan 17, 2002
Posts: 1
I want to divide my panel into 2 halves.
top has some text fields
and the bottom half is gonna be a JTabbedPane w/tabs
----
When i add a JTabbedPane to my panel...it takes up all space.
Thanks
[ January 17, 2002: Message edited by: rudyten ]
Joe Gilvary
Ranch Hand

Joined: May 11, 2001
Posts: 152
You will need to work with LayoutManagers to position
gui widgets in your panel. If you have a JPanel, by
default it uses a java.awt.FlowLayout. This LayoutManager
adds items to the view, left to right, in the order
that you add them in your program. You probably want to try a BoxLayout or GridLayout to divide the
panel into upper and lower halves.
HTH,
Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JtabbedPanes problem?
 
Similar Threads
what will happen while adding already existing panel in JTabbedPane?
refreshing the jtabbedpane
keyboard shortcuts to move between tabs inJTabbedPane
How to launch JInternalFrame from a JTabbedPane
close panel