This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Function about the class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Function about the class" Watch "Function about the class" New topic
Author

Function about the class

sheng zhong
Greenhorn

Joined: Nov 23, 2006
Posts: 20
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

Joined: Mar 22, 2005
Posts: 42958
    
  73
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

Joined: Nov 23, 2006
Posts: 20
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

Joined: Mar 22, 2005
Posts: 42958
    
  73
The two classes do completely different things, so I'm not sure what you mean by "their difference".
 
Have you checked out Aspose?
 
subject: Function about the class
 
It's not a secret anymore!