java2d and swing

I have a class witch extends Panel.

It recieves Vector with data and there I prepare it for drawing.

I draw my shapes on Panel. This Panel Belongs to Frame.

When I minimize frame and then restore it, I get exception

in private method of my class, where I process input data for drawing.

The question is:

Why is it so?

Is it recalculates everything after restoring frame from minimalization?

[440 byte] By [Holoda] at [2007-11-27 6:50:26]
# 1

Nothing can be understood clearly from your posting...

So if you need help then you should to create a

[url=http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example

Program[/url] (SSCCE) that demonstrates the incorrect behaviour.

Don't forget to use the [url=http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url]

so the posted code retains its original formatting.

regards

Aniruddha

Aniruddha-Herea at 2007-7-12 18:24:27 > top of Java-index,Desktop,Core GUI APIs...
# 2
The problem was in fixed positions of my shapes.(Sometimes my code tried to draw shape in empty area which doesn't belong to my component...)Now I get positions, which depends on the actual size of component.The problem is solved
Holoda at 2007-7-12 18:24:27 > top of Java-index,Desktop,Core GUI APIs...