public void display(GLAutoDrawable gLDrawable) {
final GL2 gl = gLDrawable.getGL().getGL2();
gl.glClear(GL.GL_COLOR_BUFFER_BIT);
gl.glClear(GL.GL_DEPTH_BUFFER_BIT);
gl.glLoadIdentity();
gl.glTranslatef(0.0f, 0.0f, z-5.0f);
// rotate on the three axis
// gl.glRotatef(rotateT, 1.0f, 0.0f, 0.0f);
// gl.glRotatef(rotateT, 0.0f, y+1, 0.0f);
gl.glRotatef(rotateT, x, y, z);
gl.glEnable(GL.GL_BLEND);
gl.glBlendFunc (GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
// Draw A Quad
gl.glBegin(GL2.GL_QUADS);
//First face TOP
gl.glColor4f(1.0f, 0.0f, 0.0f, 0.25f); // RED
gl.glVertex3f( 1.0f, 1.0f,-1.0f); // Top Right Of The Quad (Top)
gl.glVertex3f(-1.0f, 1.0f,-1.0f); // Top Left Of The Quad (Top)
gl.glVertex3f(-1.0f, 1.0f, 1.0f); // Bottom Left Of The Quad (Top)
gl.glVertex3f( 1.0f, 1.0f, 1.0f); // Bottom Right Of The Quad (Top)
//Second face
gl.glColor4f(1.0f, 1.0f, 0.0f, 0.5f); // YELLOW
gl.glVertex3f( 1.0f,-1.0f, 1.0f); // Top Right Of The Quad (Bottom)
gl.glVertex3f(-1.0f,-1.0f, 1.0f); // Top Left Of The Quad (Bottom)
gl.glVertex3f(-1.0f,-1.0f,-1.0f); // Bottom Left Of The Quad (Bottom)
gl.glVertex3f( 1.0f,-1.0f,-1.0f); // Bottom Right Of The Quad (Bottom)
//Third Face
gl.glColor4f(1.0f, 1.0f, 1.0f, 0.5f); // WHITE
gl.glVertex3f( 1.0f, 1.0f, 1.0f); // Top Right Of The Quad (Front)
gl.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left Of The Quad (Front)
gl.glVertex3f(-1.0f,-1.0f, 1.0f); // Bottom Left Of The Quad (Front)
gl.glVertex3f( 1.0f,-1.0f, 1.0f); // Bottom Right Of The Quad (Front)
//Fourth Face
gl.glColor4f(1.0f ,0.5f ,0.0f, 0.5f); // Color Orange
gl.glVertex3f( 1.0f,-1.0f,-1.0f); // Top Right Of The Quad (Back)
gl.glVertex3f(-1.0f,-1.0f,-1.0f); // Top Left Of The Quad (Back)
gl.glVertex3f(-1.0f, 1.0f,-1.0f); // Bottom Left Of The Quad (Back)
gl.glVertex3f( 1.0f, 1.0f,-1.0f); // Bottom Right Of The Quad (Back)
// Fifth Face
gl.glColor4f(0.0f,0.0f,1.0f, 0.5f); // Color Blue
gl.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Right Of The Quad (Left)
gl.glVertex3f(-1.0f, 1.0f,-1.0f); // Top Left Of The Quad (Left)
gl.glVertex3f(-1.0f,-1.0f,-1.0f); // Bottom Left Of The Quad (Left)
gl.glVertex3f(-1.0f,-1.0f, 1.0f); // Bottom Right Of The Quad (Left)
//Sixth Face
gl.glColor4f(1.0f,0.0f,1.0f, 0.5f); // Color Violet
gl.glVertex3f( 1.0f, 1.0f,-1.0f); // Top Right Of The Quad (Right)
gl.glVertex3f( 1.0f, 1.0f, 1.0f); // Top Left Of The Quad (Right)
gl.glVertex3f( 1.0f,-1.0f, 1.0f); // Bottom Left Of The Quad (Right)
gl.glVertex3f( 1.0f,-1.0f,-1.0f); // Bottom Right Of The Quad (Right)
gl.glDisable(GL.GL_BLEND);
gl.glEnd();