fix Fozzie icon (why didn't this error before?)

This commit is contained in:
Wirlaburla 2024-07-19 14:49:42 -05:00
parent b5f04cf87d
commit 483541e396

View File

@ -99,12 +99,7 @@ public class Fozzie {
frame.setLayout(new GridLayout()); frame.setLayout(new GridLayout());
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);
frame.setAlwaysOnTop(true); frame.setAlwaysOnTop(true);
try { frame.setIconImage(Main.windowIcon);
windowIcon = ImageIO.read(Main.class.getResourceAsStream("/titleIcon.png"));
frame.setIconImage(windowIcon);
} catch (IOException e) {
System.out.println("ERROR: Failed to find /resources/titleIcon.png. Window will not have an icon.");
}
frame.setVisible(true); frame.setVisible(true);
label.setText(text); label.setText(text);