many thanks for your reply,
as far as my poor knowledge about Java3d, the values should be 1 and 20 or less for Xs and Ys, but the values are like 300 and 400 and above than these...
and trouble means
some time the balls are drawing but not moving
some time going out of the panel
some time moving on little area
some time just stick at one place...
these all happening on my hit and tries to decrease the values but still i m not getting the normal results.
for me these values are causing all problems as these are set with respect to 2D , but i m unable to fix these:
private static final float BOX_WIDTH = 640;
private static final float BOX_HEIGHT = 480;
float minX = 0.0f + radius;
float minY = 0.0f + radius;
float maxX = 0.0f + BOX_WIDTH - 1.0f - radius;
float maxY = 0.0f + BOX_HEIGHT - 1.0f - radius;