• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Handling the Event of the Image

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!!
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic