Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Double Buffering

 
Chris Copeland
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have looked through a lot of complicated examples of double buffering and am getting completely confused. Here is all I need. I have an applet that is starting up a thread. The thread gets applet dimensions and staggers a y coordinate so that a message will scroll on the screen. It then calls repaint(). This kicks off an overridden paint method that includes: "g.drawString(scrollingMsg, x, y);"
This text is showing up. However, it is flickering on the screen as it moves across. How do I double buffer JUST the moving text without messing up the rest of the applet window where we are doing some payroll work?
Thanks,
Chris
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!