Skip to content
Snippets Groups Projects
Commit 306bac4e authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

add warning if corpus services are missing

parent c6611d92
No related branches found
No related tags found
No related merge requests found
Pipeline #12215 passed
...@@ -160,6 +160,14 @@ public class GUI { ...@@ -160,6 +160,14 @@ public class GUI {
}); });
mainPanel.add(buttonPanel); mainPanel.add(buttonPanel);
window.getContentPane().add(mainPanel); window.getContentPane().add(mainPanel);
if (!new File("corpus-services.jar").exists()) {
checkButton.setEnabled(false);
JOptionPane.showMessageDialog(window,
"Corpus services file corpus-services.jar is missing. Before you can use this application"
+ " you have to update Corpus services using the button below.",
"Warning",
JOptionPane.WARNING_MESSAGE);
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment