Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help i need help with borderlayout

 
wes leon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i need all those buttons in the north but they over lap?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wes leon wrote:i need all those buttons in the north but they over lap?


Read the BorderLayout tutorial and you'll see why. Only one component should be placed in a Container's BorderLayout.NORTH position. If you want a bunch of buttons on the north side, put them in a JPanel(s) (using whatever layouts is/are necessary) and add that JPanel BorderLayout.NORTH.

for e.g.,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic