How to layout 2 buttons on one panel using BorderLayout

Set the LayoutManager of center to BorderLayout, with this method:

center.setLayout(new BorderLayout());

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top