Hello,
can any one tell me when paintComponent(Graphics gc){} method will be
called???
it's needed that i have to extends JPanel.
in my prog m extending theJApplet class.
can paintComponent(Graphics gc){} will called if m extending the
JApplet..
plz tell me..
waiting 4 yr reply.
Regards,
Shruti.
Andrew Thompson - 18 Oct 2006 12:20 GMT
> Hello,
> can any one ...
Please refrain from multi-posting.
(X-post to c.l.j.g./p., w/ f-u to c.l.j.p. only.)
Andrew T.
Tor Iver Wilhelmsen - 18 Oct 2006 16:58 GMT
> can any one tell me when paintComponent(Graphics gc){} method will be
> called???
When the Swing framework, which builds on the AWT framework, gets
around to it - in the repaint thread. Basically, a lot of code you
will write in the future will be running in a framwrok-like
environment (like Swing, or a servlet container) where other code is
responsible for actually calling your methods. Get used to that.