This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes How to refresh an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to refresh an applet" Watch "How to refresh an applet" New topic

How to refresh an applet

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
I want an program whose objective is to show some images in an applet. This applet should also have two buttons "Next" or "previous" as at one time I want to show only 15 images. I am able to show the first 15 images in the applet with the button "Next" but now when I click at this button it do all the processing but never refresh it...what I mean I could not able to see new images...
But If I try with the AppletContext concept and load the applet once again against a new HTML I can see these images...
Is there any know problem in refreshing applets or AppletContext is the only way of refreshing it.
Thanks & regards,
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Is the applet maybe trying to display images before they have been downloaded and are ready for displaying? Have you tried using java.awt.MediaTracker ?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: How to refresh an applet
It's not a secret anymore!