drawable.setGL(new DebugGL(drawable.getGL()));
if (!(drawable.getGL() instanceof DebugGL)) { drawable.setGL(new DebugGL(drawable.getGL())); }
    public void init(GLDrawable drawable) {      drawable.setGL(new DebugGL(drawable.getGL()));      GL gl = drawable.getGL();      float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };      gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, pos);      gl.glEnable(GL.GL_CULL_FACE);      gl.glEnable(GL.GL_LIGHTING);      gl.glEnable(GL.GL_LIGHT0);      gl.glEnable(GL.GL_DEPTH_TEST);      initializeDisplayList(gl);      gl.glEnable(GL.GL_NORMALIZE);    }