Preventing disappearance of the drawings?
Well i am working on a paint program, i created the main frame gui, for entering parameters i created another jframe, since java does not have a close method, i just change the visiblity of the second frame to false and make it invisible.. the problem is that whenever i enter parameters to the second frame for drawing a line, it draws the line, but whenever i call the frame back, the line disappears.. same thing also happens when i resize the main frame. How can i prevent that?

