597598599600601602603604605606607
catch (Throwable t) { // Check for the headless property. if (GraphicsEnvironment.isHeadless()) { toolkit = new HeadlessToolkit(); return toolkit; } else { AWTError e = new AWTError("Cannot load AWT toolkit: "