11 February 2004 - java_dev (original) (raw)

| | 05:52 pm - thejohnmills - Swing Hi all,I'm looking for a way to add multiple JPanel's to one main JFrame.What Ive got so far are two panel both with their respectable components: //frame.setContentPane(contentPane); //frame.setContentPane(buttonPane); frame.getContentPane().add(contentPane); frame.getContentPane().add(buttonPane); What that does is displays the last given panel to my frame.(both work) I'm sure its something stupid that I'm doing, mostly because Im not fully away of what those methods are actually doing.Any ideas/Resources are helpful. ThanksJohn | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |