JSLFrame oFrame = desktop.getSelectedFrame();
JSLFrame oFrame = JSLDesktop.getSelectedFrame();
    private static void saveFrame() {	File fn = null;	try {	    JSLFrame oFrame = desktop.getSelectedFrame();	    if (oFrame.getTitle().startsWith("Unsaved ")) {		fn = showSaveDialog();		if (fn == null)		    return;	    }	    if (oFrame instanceof LibraryFrame) {		saveFrame((LibraryFrame)oFrame, fn);	    } else if (oFrame instanceof SceneFrame) {		saveFrame((SceneFrame)oFrame, fn);	    }	} catch (Exception e) {	    ErrorMsg.reportError("Error", "Unable to Save Library", e);	    return;	}    }