Hi there, I have a JPanel, in its constructor a JScrollPane is added.
And thats fine, it shows up fine.
There is also a JButton on the panel, which I want to be able to remove the JScrollPane, but it doesn't seem to work.
Here is the code I have for when the button is pressed...
can you please help me with the same problem how to do that
i.e. how to repaint a panel with some other components when a button is pressed ? ??