diff --git a/src/de/thm/tlf/photoViewer/Controller.java b/src/de/thm/tlf/photoViewer/Controller.java index 06b5ff5..75bfc02 100644 --- a/src/de/thm/tlf/photoViewer/Controller.java +++ b/src/de/thm/tlf/photoViewer/Controller.java @@ -304,6 +304,7 @@ public class Controller extends Application { for(PicturePreview pp: picHandler.getPreviews()){ ImageView iv = new ImageView(pp.getImage()); iv.setFitWidth(150); + iv.setFitHeight(150); iv.setSmooth(true); iv.setPreserveRatio(true); selectionPane.getChildren().add(iv); diff --git a/src/de/thm/tlf/photoViewer/data/Picture.java b/src/de/thm/tlf/photoViewer/data/Picture.java index 9245f44..e1eed21 100644 --- a/src/de/thm/tlf/photoViewer/data/Picture.java +++ b/src/de/thm/tlf/photoViewer/data/Picture.java @@ -4,7 +4,6 @@ import javafx.scene.image.Image; import java.io.FileInputStream; import java.io.FileNotFoundException; -import java.io.InputStream; /** * Data Class that is used for Image-Handling and -storing