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.......

I've a feeling you're not creating anything but are just copying randomly selected questions from some websites here in order to make trouble.

Start making some sense or get lost.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.