• 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

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

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you
 
catch it before it slithers away! Oh wait, it's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic