How to draw a 3D globe?

I´m trying do draw a 3D globe, but don´t succeed.
A circle is beeing drawn, but then I would like to draw circels each with 1 grade angle increase since the last drawn circle. What do I have to modify in my code?


    final float DEG2RAD = (float)3.14159/180;
    float grade = 0.0f;

    void drawCircle(float radius)
    {
       gl.glBegin(GL.GL_LINE_LOOP);

       for (int i=0; i < 360; i++)
       {
           for(int y=0; y<360; y++)
           {
               float degInRad = y*DEG2RAD;
               gl.glVertex2f(((float)Math.cos(degInRad)*radius)+grade, (float)Math.sin(degInRad)*radius);
               grade++;
           }
       }

       gl.glEnd();
    }

Hey,
you also can put your LINE_LOOP in a DisplaylIst, then call it in a for next loop 360 times and rotate it around one axis, y-axis for example. Or just use the glut-method GlutWireSphere, glutSolidSphere?!?!
Why not these?
best regards,
normen

But glut-methods are not a part of JOGL?

The GLUT methods are, or most of them are. All you have to do is create an instance of GLUT and then that object should have the glutXYZ functions mentioned above. Just like using the GL, don’t call them unless it’s in a place appropriate for opengl work.

I am using the NetBeans OpenGL Pack, in which package can I find GLUT? I have search through the API but cannot find it.

EDIT: Sorry, haha, I am totaly blind. Found it just below the GLU class. ;D