diff --git a/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java b/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java index 521a3bc..7c57197 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java @@ -7,7 +7,7 @@ import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.StackPane; import javafx.stage.Stage; -import java.io.File; +import java.io.InputStream; /** * Controller class for the Tutorial.fxml file @@ -46,10 +46,10 @@ public class TutorialController { * @param fileName the file name of the source */ private void setImageView(ImageView imageView, String fileName) { - File file = new File(String.valueOf(PlantsController.class.getResource(fileName))); + InputStream is = PlantsController.class.getResourceAsStream("screenshots/" + fileName); Image image; - if (file.exists()) { - image = new Image(String.valueOf(PlantsController.class.getResource(fileName))); + if (is != null) { + image = new Image(String.valueOf(PlantsController.class.getResource("screenshots/" + fileName))); } else { image = new Image(String.valueOf(PlantsController.class.getResource("placeholder.png"))); } diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-new-plant.png b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-new-plant.png new file mode 100644 index 0000000..c0c1687 Binary files /dev/null and b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-new-plant.png differ diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-task.png b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-task.png new file mode 100644 index 0000000..313e86d Binary files /dev/null and b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/add-task.png differ diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/details-delete.png b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/details-delete.png new file mode 100644 index 0000000..3ad5755 Binary files /dev/null and b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/details-delete.png differ diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/schedule.png b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/schedule.png new file mode 100644 index 0000000..16b7b0d Binary files /dev/null and b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/schedule.png differ diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/select-sow-harvest.png b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/select-sow-harvest.png new file mode 100644 index 0000000..d41fe70 Binary files /dev/null and b/src/main/resources/ch/zhaw/gartenverwaltung/screenshots/select-sow-harvest.png differ