GL4Java- X,Y,Z

I want to use the mouse to rotate my object. I’m using gluPerspective, how do I get my x,y,z values. I can’t use evt.getX because that is the coordinates of the canvas. Can someone please help!!!