posted 15 years ago
Ola,
I've got problem with displaying already drawn circles at JPanel. When I click to button to add new circle, then again and again, circles are normaly drew but whem I iconized and deiconized window then graphical context of JPanel is clear - yeah I know that beacuse after deiconized window the updateUI() metho is called so that clears content before drawn, but I thought to solve it to customize JPanel's overriden method to form like
to hold/keep JPanel's graphical context, simply to see again what I drew before iconizing the window.
Here is the code, so please help.