throw new RuntimeException("OpenGL routine \"" + function + "\" not available");
final String message = "OpenGL routine \"" + function + "\" 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 ensurePresent(String function) {    if (!canvas.getGL().isFunctionAvailable(function)) {      throw new RuntimeException("OpenGL routine \"" + function + "\" not available");    }  }