Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic