Don't have alot of experience with it, but i think you should work with a container,
so that your frame is your frame, inside your frame you have your jbuttons, and a JPanel where you add your...