Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Function about the class

 
sheng zhong
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

What is this base class use for? It seems use for some graph buffer for the applet. I am not sure......


 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It helps with implementing double buffering, which is a technique used to avoid the screen flicker you get if you repeatedly update graphics on the screen: Wikipedia: Double Buffering.

This is needed only for AWT graphics - Swing does double buffering internally.
 
sheng zhong
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Then use the code below, we can draw line on a applet.
I wonder what's the difference between class Draw and class Item?



 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two classes do completely different things, so I'm not sure what you mean by "their difference".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic