Answer the question
In order to leave comments, you need to log in
How do I change the set of elements inside a JFrame?
Hello.
I have JFrame. I want the current set of items to disappear and a second set of items to appear when the button is clicked on it. Accordingly, by pressing the "Back" button on the second set of elements, it would return to the first set. How to implement it correctly?
Is it worth it to use two JPanels for this and apply the appropriate setVisible() for them on button click?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question