public void JSLFrameActivated(JSLFrameEvent e) { PatchEdit.receiveAction.setEnabled(true); PatchEdit.importAction.setEnabled(true); PatchEdit.importAllAction.setEnabled(true); PatchEdit.newPatchAction.setEnabled(true); PatchEdit.crossBreedAction.setEnabled(true);  if (table.getRowCount()>0) { PatchEdit.saveAction.setEnabled(true); PatchEdit.saveAsAction.setEnabled(true); PatchEdit.searchAction.setEnabled(true); }  if (table.getRowCount()>1) { PatchEdit.sortAction.setEnabled(true); PatchEdit.dupAction.setEnabled(true); } if (table.getSelectedRowCount()>0) { PatchEdit.extractAction.setEnabled(true); PatchEdit.sendAction.setEnabled(true); PatchEdit.sendToAction.setEnabled(true); PatchEdit.playAction.setEnabled(true); PatchEdit.storeAction.setEnabled(true); PatchEdit.reassignAction.setEnabled(true); PatchEdit.uploadAction.setEnabled(true);
public void JSLFrameActivated(JSLFrameEvent e) { enableMenus();
            public void JSLFrameActivated(JSLFrameEvent e)            {                PatchEdit.receiveAction.setEnabled(true);                PatchEdit.importAction.setEnabled(true);                PatchEdit.importAllAction.setEnabled(true);                PatchEdit.newPatchAction.setEnabled(true);                PatchEdit.crossBreedAction.setEnabled(true);                if (table.getRowCount()>0)                {                    PatchEdit.saveAction.setEnabled(true);                    PatchEdit.saveAsAction.setEnabled(true);                    PatchEdit.searchAction.setEnabled(true);                }                if (table.getRowCount()>1)                {                    PatchEdit.sortAction.setEnabled(true);                    PatchEdit.dupAction.setEnabled(true);                }		if (table.getSelectedRowCount()>0) {                    PatchEdit.extractAction.setEnabled(true);                    PatchEdit.sendAction.setEnabled(true);                    PatchEdit.sendToAction.setEnabled(true);                    PatchEdit.playAction.setEnabled(true);                    PatchEdit.storeAction.setEnabled(true);                    PatchEdit.reassignAction.setEnabled(true);		    PatchEdit.uploadAction.setEnabled(true);		} enableMenus();            }