Improved Backend

This commit is contained in:
2019-04-28 11:19:53 +02:00
parent c4ed32689d
commit 02e63e14c0
29 changed files with 175 additions and 42 deletions

View File

@@ -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();
}
}