GridLayout will make all the buttons equal size... you may want to use something other than BorderLayout to hold the panel that holds the buttons, though... or you will end up with GIANT buttons!

(Probably just setPreferredSize() on the panel that holds the buttons and use FlowLayout on the outer panel.)