You can stack layouts, which means you can put a group of buttons in a JPanel with a BoxLayout, then add that JPanel to the north position of another JPanel that has a BorderLayout.