Added icon.

This commit is contained in:
Chris Cromer 2016-06-27 18:39:33 -04:00
parent d7b9ab01cc
commit bb8da3fd87
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,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;
import java.io.IOException; import java.io.IOException;
@ -62,7 +63,7 @@ public class Main extends Application {
//stage.setMaximized(true); //stage.setMaximized(true);
stage.setMinHeight(640); stage.setMinHeight(640);
stage.setMinWidth(768); stage.setMinWidth(768);
//stage.getIcons().add(new Image("file:icon.png")); stage.getIcons().add(new Image(getClass().getResourceAsStream("/cl/cromer/estructuras/images/icon.png")));
stage.show(); stage.show();
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB