Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

repaint() is not calling paintComponent

843805Jan 20 2007 — edited Jan 22 2007
Hi

I writing a code where it has two classes in the same file. In the other class (which does not have the main method) i'm using the repaint() method but it does not call the paintComponent method which i've over-ridden.

I've tried revalidate but even then it doesn't call.

Does anyone know what the problem might be?


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2007
Added on Jan 20 2007
24 comments
1,846 views