• 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

drawImage() method in applet

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have this applet that puts up a slide show. I am using Graphics� drawImage
Method to draw the images. The first image comes fine. But when I click the next button nothing happens. I found out that the image gets lode but I can see it. After I click the next button if I minimize the window and restore it the second image shows. But just clicking the next button will not show the images.

What I must do???

Is there a method to clear the first image I draw.

Thank you.

If this is not the place that I must post this question I am sorry for that. Just trying to get some help
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We can't tell you what you're doing wrong if you don't tell us what you're doing! We'd need to see the code for your paint() method and the event handler for the button to be sure. But it just sounds like your event handler needs to call repaint() on the applet, but isn't.
 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
It seems that the repaint method works. But then another problem came up. In the image load method I am printing the image url.
When I put the repaint method it some how repeats the loadimage method random times and shows some other method do not go according to the order

but when i comment that line image by image gets load in the correct order. But in do not show.
Is there a way to repaint my images

What must I do.
 
reply
    Bookmark Topic Watch Topic
  • New Topic