Skip to content

Commit

Permalink
Remove icon-loading code temporarily, as it does not work from within…
Browse files Browse the repository at this point in the history
… a packaged JAR
  • Loading branch information
Valkryst committed Aug 19, 2024
1 parent e2bafc7 commit 9fa94e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/valkryst/Schillsaver/display/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class Display {

/** Constructs a new Display. */
private Display() {
final var icon = new ImageIcon(Display.class.getResource("/icon.png"));
frame.setIconImage(icon.getImage());
// todo This does not work when packaged as a JAR file.
// final var icon = new ImageIcon(Display.class.getResource("/icon.png"));
// frame.setIconImage(icon.getImage());

frame.setBackground(Color.BLACK);
frame.setTitle("Schillsaver - Powered by /g/entoomen©®");
Expand Down

0 comments on commit 9fa94e0

Please sign in to comment.