PatchBasket library=(PatchBasket)PatchEdit.desktop.getSelectedFrame();
PatchBasket library=(PatchBasket)JSLDesktop.getSelectedFrame();
	                       public void actionPerformed(ActionEvent e) {			       try {			        PatchBasket library=(PatchBasket)PatchEdit.desktop.getSelectedFrame();				Patch q=PatchEdit.Clipboard;				PatchEdit.Clipboard=crossBreeder.getCurrentPatch();				library.PastePatch();				PatchEdit.Clipboard=q;			       }catch (Exception ex){JOptionPane.showMessageDialog(null, "Destination Library Must be Focused","Error", JOptionPane.ERROR_MESSAGE);}			       }});