So far, this is what I have figured out, which is not much.(Graphic Java
Mastering the JFC Vol II: Swing p.138)

What is the difference between paint() and paintComponent()?

The Jcomponent.paint() method actually delegates the work of painting to
three protected methods: paintComponent, paintBorder, and paintChildren.
They're called in the order listed to ensure that children appear on top of
component itself.

If the UI delegate is non-null (what if it is null?),
Jcomponent.paintComponent() invokes the delegate's update() method, which
clears the background for opaque components and subsequently paints the
components.

I think I am missing the big picture.  Please, share any knowledg or
resources you may have on this topic!

Thanks.
D. Michael Nelson




_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to