Im currently working on a project which has a game panel and a control panel.
The game panel works fine, however now im trying to create the control panel in the same frame, and i cant seem to set its location.
Its location is under the game panel, however I cant seem to make this stick, as the button always displays at the top of the screen in the middle.
I know with java you have little control over they layout, but surely I must be able to group a section of buttons and make sure they display in one area only?
Code pasted below in spoiler
Thanks in advance
hospitalControlPanel extends JPanel
button1 = new JButton("im a button");
* @author Rel
public class hospital
* @param args
public static void
//gameWindow.getContentPane().add (new hospitalGamePanel());