Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

============ applet's refreshing problem ============

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I drew a motion picture (animation.gif) on my applet by writing "g.drawImage(........)" in the "public void paint(Graphic g)" method.
The problem is the applet PANEL always refreshed when the motion picture was playing. Can anybody tell me how to solve this problem? Or How to reduce the side-effect brought by the refreshing.
regards,
mellihoney
[ August 31, 2003: Message edited by: Mellihoney Michael ]
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think by "motion picture" maybe you're talking about an animated GIF? If that's the case, there's not much you can do that I'm aware of. What you could do, instead, is to do the animation explicitly in Java -- i.e, have one GIF for each frame, and paint them one at a time; this way refreshing won't restart the animation. There are several animation examples in the demos/applets directory that comes with the JDK.
 
Mellihoney Michael
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
It means our mission is in jeapordy! Quick, read this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic