/** * {@inheritDoc} * * <p>We use a private non-shared X11 Display instance for EDT window operations and one for * exposed animation, eg. OpenGL. */ protected void createNativeImpl() { X11Util.setX11ErrorHandler(true, DEBUG ? false : true); // make sure X11 error handler is set long handle = X11Util.openDisplay(name); if (0 == handle) { throw new RuntimeException("Error creating display(Win): " + name); } aDevice = new X11GraphicsDevice(handle, AbstractGraphicsDevice.DEFAULT_UNIT, true /* owner */); try { CompleteDisplay0(aDevice.getHandle()); } catch (RuntimeException e) { closeNativeImpl(); throw e; } }