I have a program where I can click on a button and it calls in a new panel, making the current one false through action listener. This panel uses up the whole size of the JFrame
, giving me a form to fill out and buttons to press.
Is this the correct method to do this? Or is there a better way as I am running into bugs where the newly called JPanel
appears on other JPanel
s. I could use setVisible(false)
but then certain elements such as buttons do not appear.