GL4Java- Rotation Problem.....HELP!!!

I am trying to rotate my object using the mouse. I am passing the values of x and y to my variables and using them in the gl.glRotatef(…,…,…). I thought this was an accurate way of creating the rotation, however when I rotate the texture of my object gets distorted and when I ran it on the Mac the object(sphere w/texture) didn’t rotate but everything else in the scene did. Can someone please tell me what I’m doing wrong?