fix Fozzie icon (why didn't this error before?)
This commit is contained in:
parent
b5f04cf87d
commit
483541e396
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user