Skip to Main Content

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
Post Details
Added on Nov 4 2002
1 comment
31 views