PatchEdit.reassignAction.setEnabled(false);
            public void valueChanged(javax.swing.event.ListSelectionEvent e) {                //System.out.println ("ValueChanged"+((ListSelectionModel)e.getSource ()).getMaxSelectionIndex ());                if (((javax.swing.ListSelectionModel)e.getSource()).getMaxSelectionIndex()>=0) {                    PatchEdit.extractAction.setEnabled(true);                    PatchEdit.sendAction.setEnabled(true);                    PatchEdit.playAction.setEnabled(true);                    PatchEdit.storeAction.setEnabled(true);                                        Patch myPatch=((Performance)myModel.performanceList.get(table.getSelectedRow())).getPatch();                    try{                        myPatch.getDriver().getClass().getDeclaredMethod("editPatch", new Class[]{myPatch.getClass()});                        PatchEdit.editAction.setEnabled(true);                    }                    catch(NoSuchMethodException ex) {                        if (myPatch.getDriver() instanceof BankDriver)                            PatchEdit.editAction.setEnabled(true);                        else                            PatchEdit.editAction.setEnabled(false);                    };                                        PatchEdit.copyAction.setEnabled(true);                    PatchEdit.cutAction.setEnabled(true);                    PatchEdit.deleteAction.setEnabled(true);                    PatchEdit.exportAction.setEnabled(true);                }                                else {                    PatchEdit.extractAction.setEnabled(false);                    PatchEdit.sendAction.setEnabled(false);                    PatchEdit.playAction.setEnabled(false);                    PatchEdit.storeAction.setEnabled(false);                    PatchEdit.editAction.setEnabled(false);                    PatchEdit.copyAction.setEnabled(false);                    PatchEdit.cutAction.setEnabled(false);                    PatchEdit.deleteAction.setEnabled(false);                }            }