Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JtabbedPanes problem?

 
rudyten
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic