hello!
Can somebody help me:
I have a box and cylinder in the screen. I want to
draw a line between them by clicking with mouse. I
have stored the centre of bounds of two objects
using setUserData() method. I am also able to pick
the objects on the screen using pick methods.
The only problem that is coming is that getUserData is
returning null, which I don't know why. I might be
making some silly mistake but i don't have any idea
about it. I am working on this code for last four
days and have tried different things. I am attaching
the entire code as well as getUserData part.
Since cg[] is null, i am getting null pointer
exception.
if ( myShape!=null)
{
cg[count++] = (Point3d)myShape.getUserData();
System.out.println(cg[count++]);//returning null
LineArray la=new
LineArray(count,LineArray.COORDINATES);
la.setCoordinates(0,cg);
}
Please tell me.
Thanks
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
SimpleLine.java