Improved Backend

This commit is contained in:
C0d3v committed 2019-04-28 11:19:53 +02:00
1 parent c4ed32689d
commit 02e63e14c0
29 files changed
+175 -42

No files matched your search

@@ -0,0 +1,25 @@
package stages;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import network.ServerThread;
import scenes.LogScene;
public class AppStage extends Application{
public void start(Stage primaryStage) throws Exception {
primaryStage.setOnCloseRequest(event -> {
System.exit(0);
});
LogScene ls = new LogScene(primaryStage);
Thread st = new Thread(new ServerThread(ls));
st.start();
primaryStage.setScene(new Scene(ls));
primaryStage.setResizable(false);
primaryStage.show();
}
}