JPanel issue
Hi,
I have a JScrollPanel which contains & displays an array of JPanels fine.
JScrollPanel-->Array of JPanels
My problem is is that when I click on one of these JPanels (the scroll panel is a grid layout, 5 x 4) I need it to change to another JPanel. I cannot get this to work, I can only get the panel to disappear by looking to see which JPanel the mouse was clicked in and calling remove(panelArray[i]);
.
I have tried changing the value of the jpanel which was clicked, to the new jpanel, but that doesn't work. I'm not very experienced with swing and am wondering what I could do.
Thanks.
Message was edited by:
kerryblue19

