Add application icon

This commit is contained in:
Charles Gould 2017-01-03 18:45:33 -05:00
parent 2536e72ec1
commit 0a1186fa91
2 changed files with 2 additions and 0 deletions

View File

@ -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");

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B