throw new RuntimeException("OpenGL extension \"" + glExtensionName + "\" not available");
final String message = "OpenGL extension \"" + glExtensionName + "\" not available"; new Thread(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, message, "Unavailable extension", JOptionPane.ERROR_MESSAGE); runExit(); } }).start(); throw new RuntimeException(message);
    private void initExtension(GL gl, String glExtensionName) {      if (!gl.isExtensionAvailable(glExtensionName)) {        throw new RuntimeException("OpenGL extension \"" + glExtensionName + "\" not available");      }    }