Hi folks.
I'm making a GUI. It contains multiple JPanels. I'm having trouble making contents of other JPanels (than the first/main JPanel; others are subclasses to the first one) visible...
From the first JPanel, I call a draw method to a second JPanel. This second JPanel's draw method displays a text, and that's OK, but it's not showing the following thing where a button should be created.
The first JPanel displays everything (text, buttons...).
1. What's going on? Why can't I have buttons in my second JPanel??
2. Any tips on making a GUI that can have switchable screens? (e.g. I click on button of one screen, that takes me to another screen...) Other approaches would be appreciated.
Cheers