gl.glGetIntegerv(GL.GL_RED_BITS, redBits,0);
gl.glGetIntegerv(GL.GL_GREEN_BITS, greenBits,0);
gl.glGetIntegerv(GL.GL_BLUE_BITS, blueBits,0);
gl.glGetIntegerv(GL.GL_ALPHA_BITS, alphaBits,0);
gl.glGetIntegerv(GL.GL_STENCIL_BITS, stencilBits,0);
gl.glGetIntegerv(GL.GL_DEPTH_BITS, depthBits,0);
System.out.println("Red bits: " + redBits[0]);
System.out.println("Green bits: " + greenBits[0]);
System.out.println("Blue bits: " + blueBits[0]);
System.out.println("Alpha bits: " + blueBits[0]);
System.out.println("Depth Buffer bits: " + depthBits[0]);