There's a document written by Amy Fowler that explains painting in AWT and
Swing.
http://java.sun.com/products/jfc/tsc/special_report/painting/painting.html
The main topics covered in the article are:
Evolution of Paint System
Painting in the AWT
System-Triggered vs. App-Triggered Painting
The Paint Method
Painting & Lightweight Components
"Smart" Painting
AWT Painting Guidelines
Painting in Swing
Double Buffering Support
Additional Paint Properties
The Paint Methods
Paint Processing
The Repaint Manager
Swing Painting Guidelines
-Brian
> From: #YANG YUE XIANG# <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [java2d] Paint(), PaintComponent() & paintChildren()!
> Date: Wed, 24 Mar 1999 13:52:19 +0800
> MIME-Version: 1.0
>
> Hi,
>
> I donot understand the difference between Paint(), PaintComponent() &
> paintChildren().
>
> Someone likes to override the paint(...), but others probably like to
> override paintComponent(...) orpaintChildren(...).
>
> What is the difference?
>
> Thanks ahead!
>
> Yang
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/