Browse Source

Added icon.

master
Chris Cromer 5 years ago
parent
commit
bb8da3fd87
  1. 3
      src/cl/cromer/estructuras/Main.java
  2. BIN
      src/cl/cromer/estructuras/images/icon.png

3
src/cl/cromer/estructuras/Main.java

@ -4,6 +4,7 @@ import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import java.io.IOException;
@ -62,7 +63,7 @@ public class Main extends Application {
//stage.setMaximized(true);
stage.setMinHeight(640);
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();
}
}

BIN
src/cl/cromer/estructuras/images/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Loading…
Cancel
Save