File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Help i need help with borderlayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help i need help with borderlayout" Watch "Help i need help with borderlayout" New topic
Author

Help i need help with borderlayout

wes leon
Greenhorn

Joined: Jan 24, 2010
Posts: 1

i need all those buttons in the north but they over lap?
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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.,
 
Don't get me started about those stupid light bulbs.
 
subject: Help i need help with borderlayout