Datasets:

ArXiv:
License:
File size: 1,151 Bytes
c574d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package client.src;

import java.net.URL;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;

public class ClientMain extends Application {
    public static int PORT = 6000;
    public static String HOTE = "127.0.0.1";

    @Override
    public void start(Stage primaryStage) {
        try {
            URL fxmlURL = getClass().getResource("vues/MainView.fxml");
            FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL);
            Scene scene = new Scene((GridPane) fxmlLoader.load());
            scene.getStylesheets().add("vues/style.css");
            primaryStage.setScene(scene);
            primaryStage.setTitle("Game server client");
            primaryStage.setMinWidth(400);
            primaryStage.setMinHeight(320);
            primaryStage.getIcons().add(new Image("file:client/res/icon.png"));
            primaryStage.show();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
}