All,
I recall some issue, at some point in my java programming career, where
subclassing a gui class (e.g. JFrame) and over-riding paint() didn't work as
intended, but over-riding paintComponent() did (or vice versa).
In order to do custom painting whenever the JRE requests it, which method should
one over-ride?
-Denis
Vova Reznik - 08 Sep 2005 21:59 GMT
> All,
>
> I recall some issue
http://java.sun.com/docs/books/tutorial/uiswing/14painting/concepts.html
Roedy Green - 10 Sep 2005 12:10 GMT
>I recall some issue, at some point in my java programming career, where
>subclassing a gui class (e.g. JFrame) and over-riding paint() didn't work as
>intended, but over-riding paintComponent() did (or vice versa).
>
>In order to do custom painting whenever the JRE requests it, which method should
>one over-ride?
Rule of thumb: in AWT paint, in Swing paintComponent.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.