R
Raous
Hello,
I created a program which draws elipses on some panels.
When I activate another window such as a Web Browser and
return(re-activate) to my program,
the graphic objects of mine remain disappeared.
However, I found the other objects such as JButton and JLabel are
recovered and shown.
I am finding an event like WM_PAINT (in Visual C++), which occured when
the object is needed to refresh.
Although I put command such as validate() / repaint() in
"ComponentShown" of each Panel and its parent Pane, and in
"AncestorShown", I couldn't find appropriate command and position yet.
Could anyone help me?
I created a program which draws elipses on some panels.
When I activate another window such as a Web Browser and
return(re-activate) to my program,
the graphic objects of mine remain disappeared.
However, I found the other objects such as JButton and JLabel are
recovered and shown.
I am finding an event like WM_PAINT (in Visual C++), which occured when
the object is needed to refresh.
Although I put command such as validate() / repaint() in
"ComponentShown" of each Panel and its parent Pane, and in
"AncestorShown", I couldn't find appropriate command and position yet.
Could anyone help me?