Config the format of pixels?

As in JOGL in PixelFormat to specify GL_STEREO? Beforehand beholden for an answer.

How to write glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_STEREO) or that to similar not necessarily glut in JOGL?

Set the appropriate flags in the GLCapabilities object before constructing your GLCanvas.