Some fixes and additions

Added log for GUI label.
Removed quotes around jar path to make things work on linux.
This commit is contained in:
2018-02-23 21:38:42 +01:00
parent c40c5fb131
commit 5ed0236888
5 changed files with 27 additions and 10 deletions

View File

@ -1,5 +1,6 @@
package net.knarcraft.serverlauncher.userinterface;
import net.knarcraft.serverlauncher.Main;
import net.knarcraft.serverlauncher.profile.Collection;
import net.knarcraft.serverlauncher.server.Server;
import net.knarcraft.serverlauncher.profile.Profile;
@ -93,6 +94,11 @@ public class GUI implements ActionListener {
*/
public void setStatus(String text) {
this.lblStatuslabel.setText(text);
try (PrintWriter file = new PrintWriter(new FileWriter(Main.getAppDir() + File.separator + "latestrun.log", true))) {
file.println(text);
} catch (IOException e ) {
e.printStackTrace();
}
}
/**