Ok, once again I have stumbled across yet another problem.
I am trying to add a layout manager to add some simple GUI functionality. However whatever I setup, it's getting overriden by the painting of the background and the button is getting lost.
I have done the following:
However, I want to be able to add the rest to the south of the borderlayout (the crabs being drawn).Code:Container tContent = getContentPane(); JButton tStart = new JButton("Start"); tContent.add(tStart, BorderLayout.NORTH); setContentPane(tContent); setLayout(new FlowLayout()); setVisible(true);
How do I go about setting this up :S?




Reply With Quote