Hey all, I've written a small program that allows the user to add points to a canvas, and the program creates a polygon. That all works fine and dandy.
The problem I'm coming to is if the user minimizes the program, then maxmimizes it again the canvas is clear until they click in it again (which adds a point). I thought there may be a way to call repaint() when the window is Deiconified but I get the error that repaint() cannt be called from a static context etc. etc.
Is there any way around this? If someone can explain how to call repaint() from other classes aswell that would be great.
Thanks in advance!
[ July 14, 2006: Message edited by: Dan Grieve ]
The problem I'm coming to is if the user minimizes the program, then maxmimizes it again the canvas is clear until they click in it again (which adds a point). I thought there may be a way to call repaint() when the window is Deiconified but I get the error that repaint() cannt be called from a static context etc. etc.
Is there any way around this? If someone can explain how to call repaint() from other classes aswell that would be great.
Thanks in advance!
[ July 14, 2006: Message edited by: Dan Grieve ]