Add application icon
This commit is contained in:
parent
2536e72ec1
commit
0a1186fa91
@ -13,6 +13,7 @@ import javafx.application.Application;
|
|||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
|
import javafx.scene.image.Image;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@ -41,6 +42,7 @@ public class LingoClient extends Application {
|
|||||||
});
|
});
|
||||||
Scene scene = new Scene(root);
|
Scene scene = new Scene(root);
|
||||||
scene.getStylesheets().add("/style.css");
|
scene.getStylesheets().add("/style.css");
|
||||||
|
stage.getIcons().add(new Image(getClass().getResourceAsStream("/lingo.png")));
|
||||||
stage.setResizable(false);
|
stage.setResizable(false);
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.setTitle("Lingo");
|
stage.setTitle("Lingo");
|
||||||
|
BIN
client/src/main/resources/lingo.png
Normal file
BIN
client/src/main/resources/lingo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 194 B |
Loading…
x
Reference in New Issue
Block a user