aspose file tools*
The moose likes Applets and the fly likes Handling the Event of the Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Handling the Event of the Image" Watch "Handling the Event of the Image" New topic
Author

Handling the Event of the Image

Sathish Babu Adluru Subas
Greenhorn

Joined: Jan 19, 2000
Posts: 26
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!!!
Jesper Ottosson
Ranch Hand

Joined: Mar 21, 2000
Posts: 51
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...
 
Consider Paul's rocket mass heater.
 
subject: Handling the Event of the Image