JOptionPane.ERROR_MESSAGE);
}
}
public static void showExportGenesDialog(Component frame, TabPageController tabProperties) {
ExportGeneListDialog dlg;
try {
String exprName = tabProperties.getLoadedGraphicName();
if (exprName.isEmpty()) {
JOptionPane.showMessageDialog(frame, "There is no chart selected! Please select chart.",
"Export feature list", JOptionPane.ERROR_MESSAGE);
return;
}
String path = HomeFrame.outputpath + tabProperties.getOutputFolder() + "/" +
tabProperties.getLoadedGraphicName() + ".txt";
dlg = new ExportGeneListDialog(exprName, path);
dlg.setModal(true);
dlg.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dlg.setLocationRelativeTo(frame);
dlg.setVisible(true);
} catch (IOException e) {
JOptionPane.showMessageDialog(frame, "Can not prepare feature list! "+ e.getMessage(),
"Export feature list", JOptionPane.ERROR_MESSAGE);
}