How to stop updation of graphics in jpanel.

Actually i m creating suppose 3 objects of a class A(in this class i m using void paint(Graphics g))..and i m in need of showing all three graphics windows according to respective object's data..but the thing that is happening is that: i m getting three windows but according to last object's data(means if i m using loop of i then for i=2)it is updating all the three windows according to last object..

thank u

[426 byte] By [Amaresh.mouryaa] at [2007-11-27 7:58:04]
# 1

We would need a bit more information I'm afread. What I understantd is: your three windows show the same data, and those data are taken from the object only the third window should use.

Your code may either improperly use static methods or volatile variables in class A, or something may be mistyped with your indexing in the loop.

Could you post your paint method, or, at least your for loop and the variable declarations of class A.

sztyopeka at 2007-7-12 19:39:57 > top of Java-index,Desktop,Core GUI APIs...