i'm making a drawing application in which i am drawing on a canvas after taking points where mouse is dragged over it..........and this canvas is on a JPanel........but the problem is that when i minimize the window of the app, the whole drawing is lost.....
pls suggest me so that drawing is erased only when i erase it ......not on minimizing or resizing.......