Help with JPanel and JFrame
Hi, I need help with JPanel and JFrame.
For example, if i had created 3 panel (JPanelA, JPanelB and JPanelC), 1 JFrame ,1 JButton(JButton1) in JPanelA and 1 JButton(JButton2).
Firstly, when I run the application, the screen will display JPanelA in JFrame. When I click on JButton1 in JPanelA, the JPanelA will be removed and JPanelB will be added into the JFrame. And when I click the JButton2 in JPanel2, the JPanelB will be removed and JPanelC will be added into the JFrame. Also vice-versa.
Please show me an example on how to code this and I need it urgently for my project. Thank you.
If I had double post the same question again, please send me the link to that thread thanks and I will delete this.