This is rather trivial. The sample code is:
AAGLCapabilitiesChooser aaChooser = new AAGLCapabilitiesChooser();
RenderPeerImpl renderPeer = new RenderPeerImpl();
GLCapabilities caps = new GLCapabilities();
canvasPeer = (CanvasPeerImpl) renderPeer.makeCanvas(bevelPanel1, bevelPanel1.getWidth(), bevelPanel1.getHeight(), 16, false, caps, aaChooser);
AAGLCapabilitiesChooser is a custom chooser class. I think my implementation will not fit anybody's needs because of it is very application-specific and has a lot of hardware assumptions.