Skip to Main Content

Java Programming

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!

when should I call super.paint?

807580Jul 26 2009 — edited Nov 25 2009
Hello!

I have several questions on overriding public void paint(Graphics g) from applet, because I want to draw some lines on the applet panel that contains buttons and that stuff:
1- should I call super.paint(g) in order to have the components updated or will override function only work for painting the applet panel?
2- Is that the same for Applet and JApplet?
3- when should I call super.paint from overriden paint()?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2009
Added on Jul 26 2009
10 comments
497 views