From ec30afd4417d1b5dd24bd966dc949e1f684952d6 Mon Sep 17 00:00:00 2001 From: "J. Neugebauer" Date: Mon, 28 Nov 2022 09:26:45 +0100 Subject: [PATCH] Fixed icon loading on windows --- src/main/java/schule/ngb/zm/Zeichenfenster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/schule/ngb/zm/Zeichenfenster.java b/src/main/java/schule/ngb/zm/Zeichenfenster.java index bb9ad7f..95f28ef 100644 --- a/src/main/java/schule/ngb/zm/Zeichenfenster.java +++ b/src/main/java/schule/ngb/zm/Zeichenfenster.java @@ -130,7 +130,7 @@ public class Zeichenfenster extends JFrame { taskbar.setIconImage(icon); } else { ArrayList icons = new ArrayList<>(4); - for( int size = 32; size <= 512; size *= size ) { + for( int size: new int[]{32, 64, 128, 512} ) { icons.add(ImageIO.read(new File("icon_" + size + ".png"))); }