i have added a picture panel in jscroll pane
now i want that on run time when user click on another pic panel it will be shown at pic1 scroll pane, so i simply use this code
but it doesnt work , so i searched a bit over internet and find some threads about repaint , revalidate and validate function , i use them all but nothing work...
scrollpane.add(pic1); scrollpane.removeall(); scrollpane.revalidate(); scrollpane.repaint(); scrollpane.add(pic2) scrollpane.revalidate(); scrollpane.repaint();
Thats what i got .... i have explained every thing, kindly please help..................