Skip to content
Snippets Groups Projects
Commit 86798e71 authored by Tran Peter's avatar Tran Peter
Browse files

add(stage): add application icon #14

parent bd8dba41
No related branches found
No related tags found
5 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!10Mergin ui into development,!9Merging ui into development
......@@ -6,6 +6,7 @@ import javafx.fxml.FXMLLoader;
import javafx.geometry.Rectangle2D;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.text.Font;
import javafx.stage.Screen;
import javafx.stage.Stage;
......@@ -40,6 +41,7 @@ public class Main extends Application {
scene.setOnKeyReleased(inputHandler::handleKeyRelease);
stage.setTitle("BattleArena");
stage.getIcons().add(new Image("file:src/main/resources/textures/images/icon.png"));
stage.setScene(scene);
stage.minHeightProperty().setValue(400);
stage.minWidthProperty().setValue(600);
......
src/main/resources/textures/images/icon.png

5.04 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment