I'm using IntelliJ and I have a form full of components placed inside several JPanel
containers. I would like to change only a single component of a single panel when the button is pressed. I tried to remove all the components of that panel and add what I need but no results.
To be precise I would like a JLabel
to become a JTextField
.
How can I do this without drawing the GUI again and only changing that component?