Yes you were right, i was kinda trying to copy something straight out of my java book without thinking about it! Instead I just added one panel to another panel

Sorry but I have another question, is it possible to output a variable in a message box, e.g.:
Code:
		if (source == menuStats)
		{
			JOptionPane.showMessageDialog(null, "Statistics\nGames won:", winCount);
		}
winCount is just an int, thanks for any help guys! and thanks postmortem