Patch p = np.getNewPatch();
IPatch p = np.getNewPatch();
        public void actionPerformed(ActionEvent e) {            try {		NewPatchDialog np = new NewPatchDialog(PatchEdit.getInstance());		np.setVisible(true);		Patch p = np.getNewPatch();		if (p != null)		    ((PatchBasket) JSLDesktop.getSelectedFrame()).pastePatch(p);	    } catch (Exception ex) {		ErrorMsg.reportError("Error", "Unable to create this new patch.", ex);	    }        }