wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to refresh an applet" Watch "How to refresh an applet" New topic
Author

How to refresh an applet

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Hello,
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,
Arun
Dirk Schreckmann
Sheriff

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]
 
wood burning stoves
 
subject: How to refresh an applet
 
Similar Threads
Refresh
How to refresh an applet
How to Display time in JSP without refreshing page
Trapping Refresh Buttons!!
pagination when page refresh