if (!isGuiActive()){ System.err.println( "<SwingToolkit.createFrame> gui was not yet active.  Starting..." ); System.err.println( "Manually starting the gui..." ); startGui();
if (!isGuiActive()) { throw new AWTError("AWT is currently not available");
	protected FramePeer createFrame(Frame target) {        if (!isGuiActive()){ //Automatically starts the gui if not yet started.  This may be a bad idea.            System.err.println( "<SwingToolkit.createFrame> gui was not yet active.  Starting..." );            System.err.println( "Manually starting the gui..." );            startGui();        }        if (!isGuiActive()){            System.err.println( "<SwingToolkit.createFrame> gui still not yet active after startGui().  We should abort here." );        }		if (target instanceof DesktopFrame) {			setTop(target);			log.debug("createFrame:desktopFramePeer(" + target + ")");			// Only desktop is real frame			return new DesktopFramePeer(this, target);		} else {			if (!isGuiActive()) {				throw new AWTError("Gui is not active");			}			log.debug("createFrame:normal(" + target + ")");			// Other frames are emulated			return new SwingFramePeer(this, desktopFrame.getDesktop(), target);		}	}