((PatchBasket) desktop.getSelectedFrame()).EditSelectedPatch();
((PatchBasket) JSLDesktop.getSelectedFrame()).EditSelectedPatch();
	    public void run() {		try {		    JSLFrame frm =			((PatchBasket) desktop.getSelectedFrame()).EditSelectedPatch();		    if (frm != null) {			frm.setVisible(true);			desktop.add(frm);			if (frm instanceof PatchEditorFrame)			    for (int i = 0; i < ((PatchEditorFrame) frm).sliderList.size(); i++) {				JSlider slider = (JSlider) ((PatchEditorFrame) frm).sliderList.get(i);				Dimension dim = slider.getSize();				if (dim.width > 0) {				    dim.width++;				    slider.setSize(dim);				}			    }			try {			    frm.setSelected(true);			} catch (java.beans.PropertyVetoException ex) {			}		    }		} catch (Exception ex) {		    ErrorMsg.reportError("Error", "Library holding Patch to Edit must be the focused Window.", ex);		}	    }