void play() { try{ PatchBasket library=(PatchBasket)JSLDesktop.getSelectedFrame(); IPatch p = library.getSelectedPatch(); if (p != null && p.getDriver().isSingleDriver()) { p.send(); p.play(); } } catch (Exception ex) { JOptionPane.showMessageDialog(null, "Patch Must be Focused","Error", JOptionPane.ERROR_MESSAGE); }
private void play() { PatchBasket library = (PatchBasket) JSLDesktop.getSelectedFrame(); IPatch p = library.getSelectedPatch(); if (p == null) { JOptionPane.showMessageDialog(null, "Patch Must be Selected", "Warning", JOptionPane.WARNING_MESSAGE); } else if (p.isBankPatch()) { JOptionPane.showMessageDialog(null, "Cannot play a Bank Patch", "Warning", JOptionPane.WARNING_MESSAGE); } else { ((ISinglePatch) p).send(); ((ISinglePatch) p).play(); }
    void play() {	try{	    PatchBasket library=(PatchBasket)JSLDesktop.getSelectedFrame();	    IPatch p = library.getSelectedPatch();	    if (p != null && p.getDriver().isSingleDriver()) {	        p.send();	        p.play();	    }	} catch (Exception ex) {	    JOptionPane.showMessageDialog(null, "Patch Must be Focused","Error", JOptionPane.ERROR_MESSAGE);	}    }