Added icon.
This commit is contained in:
parent
d7b9ab01cc
commit
bb8da3fd87
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
src/cl/cromer/estructuras/images/icon.png
Normal file
BIN
src/cl/cromer/estructuras/images/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue
Block a user