Forums Login/signup

Help i need help with borderlayout

+Pie Number of slices to send: Send

i need all those buttons in the north but they over lap?
+Pie Number of slices to send: Send
 

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.,

reply
reply
This thread has been viewed 1586 times.
Similar Threads
A Question on JTabbedPanes
Swings
A confused new user of Java that needs some help
Applet not initializing
A confused new user of Java that needs some help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 02:12:16.