@Override
public void actionPerformed(ActionEvent actionEvent) {
String actionCommand = actionEvent.getActionCommand();
if ( actionCommand.equals(Constants.COMMAND_ADD_ITEM) ) {
EditEpigeneticsInputDataDialog dlg = new EditEpigeneticsInputDataDialog(this);
dlg.setModal(true);
dlg.setLocationRelativeTo(this);
dlg.setVisible(true);
} else if ( actionCommand.equals(Constants.COMMAND_REMOVE_ITEM) ) {
int index = inputDataTable.getSelectedRow();
if (index != -1 ) {
removeDataItem(index);
}
} else if ( actionCommand.equals(Constants.COMMAND_EDIT_ITEM) ) {
int index = inputDataTable.getSelectedRow();
if (index != -1) {
EditEpigeneticsInputDataDialog dlg = new EditEpigeneticsInputDataDialog(this, index);
dlg.setModal(true);
dlg.setLocationRelativeTo(this);
dlg.setVisible(true);
}
} else if ( actionCommand.equals(Constants.COMMAND_RUN_ANALYSIS) ) {
String errMsg = validateInput();
if (errMsg.isEmpty()) {