ISinglePatch myPatch = (ISinglePatch) myModel.getPatchAt(table.getSelectedRow()); if (myPatch.isSinglePatch()) { myPatch.send(); }
((ISinglePatch) getSelectedPatch()).send();
    public void sendSelectedPatch() {        ISinglePatch myPatch = (ISinglePatch) myModel.getPatchAt(table.getSelectedRow());        if (myPatch.isSinglePatch()) {            myPatch.send();        }    }