Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Expand the JTabbedPane  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
I have a JFrame, in the main Jpanel(layoutmanager for this panel is null), inside this panel,I but JTabbedPane.
every thind OK.
but when I maximaize the frame, the Jpanel and the tabbedpane doesn't expand(the tabbedpane take the original jframe size).
how can I force the tabbedpane to expand when I maximize the frame?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easy -- don't use a null LayoutManager! Use a BorderLayout and put the JTabbedPane in the CENTER spot.
Why use a null LayoutManager?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!