From 122b4dedea526f32676a1065e8e92251a0fc4ac1 Mon Sep 17 00:00:00 2001 From: _N0x Date: Sun, 14 Feb 2021 15:30:31 +0100 Subject: [PATCH] project cleanup --- src/de/thm/tlf/photoViewer/Controller.java | 1 + src/de/thm/tlf/photoViewer/data/Picture.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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