This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-26 20:23:25 +01:00
|
|
|
package envoy.client.ui;
|
|
|
|
|
|
|
|
import javafx.application.Application;
|
|
|
|
import javafx.fxml.FXMLLoader;
|
|
|
|
import javafx.scene.Scene;
|
2020-03-26 21:01:42 +01:00
|
|
|
import javafx.scene.image.Image;
|
2020-03-26 20:23:25 +01:00
|
|
|
import javafx.scene.layout.GridPane;
|
|
|
|
import javafx.stage.Stage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Project: <strong>envoy-client</strong><br>
|
|
|
|
* File: <strong>Startup.java</strong><br>
|
|
|
|
* Created: <strong>26.03.2020</strong><br>
|
|
|
|
*
|
|
|
|
* @author Kai S. K. Engelbart
|
|
|
|
* @since Envoy Client v0.1-beta
|
|
|
|
*/
|
|
|
|
public final class Startup extends Application {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void start(Stage primaryStage) throws Exception {
|
|
|
|
var loader = new FXMLLoader(getClass().getResource("ChatScene.fxml"));
|
|
|
|
var anchorPane = loader.<GridPane>load();
|
|
|
|
|
|
|
|
var chatScene = new Scene(anchorPane);
|
|
|
|
primaryStage.setTitle("Envoy");
|
2020-03-26 21:01:42 +01:00
|
|
|
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/icons/envoy_logo.png")));
|
2020-03-26 20:23:25 +01:00
|
|
|
primaryStage.setScene(chatScene);
|
|
|
|
primaryStage.show();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) { launch(args); }
|
|
|
|
}
|