Hi Javacs, In my Applet,I have an image at top and a panel at the bottom.what i want to do is that when i double-click(or whatever) on the image,i want to trap the event and display the same image in the empty panel provided for displaying the image. how can i do this? help me out,please!!!
umm, first of all, in which component is the image drawn? lets say that you have a panel myPanel, in which the image is drawn, and fully covers. then the code would be
and then, in the paint method of the second panel, you paint the image if paintOnSecondPanel is true...