Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 24217
38
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!