((PatchBasket) desktop.getSelectedFrame()).PastePatch();
((PatchBasket) JSLDesktop.getSelectedFrame()).PastePatch();
        public void actionPerformed(ActionEvent e) {            try {		Patch p = Clipboard;		NewPatchDialog np = new NewPatchDialog(PatchEdit.getInstance());		np.show();		((PatchBasket) desktop.getSelectedFrame()).PastePatch();		Clipboard = p;	    } catch (Exception ex) {		ErrorMsg.reportError("Error", "Unable to create this new patch.", ex);	    }        }