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

close application after download

parent a68adcd4
No related branches found
No related tags found
No related merge requests found
Pipeline #12240 passed
......@@ -130,6 +130,7 @@ public class GUI {
"Info",
JOptionPane.INFORMATION_MESSAGE);
try {
// Download jar
BufferedInputStream in = new BufferedInputStream(new URL(FILE_URL).openStream());
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("lib/corpus-services.jar"));
in.transferTo(out);
......@@ -139,6 +140,8 @@ public class GUI {
"Download successful. You now have to restart the application.",
"Success",
JOptionPane.INFORMATION_MESSAGE);
// End application
System.exit(0);
} catch (IOException e) {
//custom title, error icon
JOptionPane.showMessageDialog(window,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment