From eb174d379dd0d3c34988a515ddaf4c7ac5f24f10 Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sat, 3 Mar 2018 15:46:26 +0100 Subject: [PATCH] Move images to res/. --- zoomIn.png => res/zoomIn.png | Bin zoomOut.png => res/zoomOut.png | Bin .../drawing/components/MapZoomControls.java | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename zoomIn.png => res/zoomIn.png (100%) rename zoomOut.png => res/zoomOut.png (100%) diff --git a/zoomIn.png b/res/zoomIn.png similarity index 100% rename from zoomIn.png rename to res/zoomIn.png diff --git a/zoomOut.png b/res/zoomOut.png similarity index 100% rename from zoomOut.png rename to res/zoomOut.png diff --git a/src/main/org/insa/graphics/drawing/components/MapZoomControls.java b/src/main/org/insa/graphics/drawing/components/MapZoomControls.java index b892c7f..ec3e2b9 100644 --- a/src/main/org/insa/graphics/drawing/components/MapZoomControls.java +++ b/src/main/org/insa/graphics/drawing/components/MapZoomControls.java @@ -62,9 +62,9 @@ public class MapZoomControls { public MapZoomControls(Component component, final int defaultZoom, final int minZoom, final int maxZoom) throws IOException { - zoomIn = ImageIO.read(new File("zoomIn.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT, + zoomIn = ImageIO.read(new File("res/zoomIn.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT, Image.SCALE_SMOOTH); - zoomOut = ImageIO.read(new File("zoomOut.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT, + zoomOut = ImageIO.read(new File("res/zoomOut.png")).getScaledInstance(DEFAULT_HEIGHT, DEFAULT_HEIGHT, Image.SCALE_SMOOTH); this.currentLevel = defaultZoom;