Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

PaintComponent Method

Thread view: 
shruti - 18 Oct 2006 11:04 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.