Rarely can you achieve what you want with only one panel and one layout manager. What you will need to do is place your buttons on a separate panel with whatever layout you need and then add that...