if (((SceneListModel)e.getSource()).getRowCount()>1) { PatchEdit.sortAction.setEnabled(true); PatchEdit.dupAction.setEnabled(true); PatchEdit.crossBreedAction.setEnabled(true); } }
if (((AbstractPatchListModel) e.getSource()).getRowCount() > 1) { PatchEdit.sortAction.setEnabled(true); PatchEdit.dupAction.setEnabled(true); PatchEdit.crossBreedAction.setEnabled(true); } }
            public void tableChanged(TableModelEvent e) {                statusBar.setText(myModel.sceneList.size()+" Patches");                if (((SceneListModel)e.getSource()).getRowCount()>0) {                    PatchEdit.saveAction.setEnabled(true);                    PatchEdit.saveAsAction.setEnabled(true);                    PatchEdit.searchAction.setEnabled(true);                    PatchEdit.exportAction.setEnabled(true);                    PatchEdit.transferSceneAction.setEnabled(true);                }                if (((SceneListModel)e.getSource()).getRowCount()>1) {                    PatchEdit.sortAction.setEnabled(true);                    PatchEdit.dupAction.setEnabled(true);                    PatchEdit.crossBreedAction.setEnabled(true);                }            }