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!

Update graphics in applet

843807Nov 4 2002 — edited Nov 4 2002
hi,

I have an panel in my applet that draw shapes on it.
In my panel (a class that extends JPanel) I have some draw functions:

class x extends JPanel{

public void draw_function1(Graphics g){..}
public void draw_function2(Graphics g){..}
public void draw_function3(Graphics g){..}
...
}

My panel does not update graphics when I minimize the window or anything that requires refresh.
I CAN'T insert all my functions inside paint() method because the shapes are not drawn at the same time, it depends on the user events...

how can I restore the previous graphics and draw more graphics ???

thanks.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 2 2002
Added on Nov 4 2002
1 comment
122 views