Show Panel

Hi AllI have two classes, both of them extends JPanel class. I have a JButton in first class, assume it Class1; How could I invoke the other Panel?JOtnarta
[176 byte] By [jotnartaa] at [2007-11-27 0:22:15]
# 1
sounds like a CardLayout() would suit http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
Michael_Dunna at 2007-7-11 22:16:54 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank you for replying, i think that i didn't put the question clear.I didn't mean the layout, I have two classes that subclass JPanel. Let's say Class1 and Class2..I have a button in Class1, that must , when clicked, show Class 2.I didn't know how to do it?
jotnartaa at 2007-7-11 22:16:54 > top of Java-index,Desktop,Core GUI APIs...
# 3
> think that i didn't put the question clear.you've made no improvement.show class 2 where?alongside the other panel?in place of the other panel?in a separate frame?
Michael_Dunna at 2007-7-11 22:16:54 > top of Java-index,Desktop,Core GUI APIs...