Skip to content

Commit ac249ad

Browse files
committed
finally exporting icon works
1 parent 020437a commit ac249ad

6 files changed

Lines changed: 2 additions & 1 deletion

File tree

bin/try1/GUI$click.class

0 Bytes
Binary file not shown.

bin/try1/GUI$hideHandler.class

0 Bytes
Binary file not shown.

bin/try1/GUI.class

11 Bytes
Binary file not shown.

src/resources/icon.png

334 Bytes
Loading

src/try1/GUI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public void actionPerformed(ActionEvent event) {
6060
//initialize trayicon, just have to add() it later in handler
6161
add(hide);
6262
tray = SystemTray.getSystemTray();
63-
trayIcon = new TrayIcon(Toolkit.getDefaultToolkit().getImage(getClass().getResource("icon.png")));
63+
64+
trayIcon = new TrayIcon(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/resources/icon.png")));
6465
trayIcon.addMouseListener(new click());
6566
trayIcon.setToolTip("Right click to exit");
6667
}

0 commit comments

Comments
 (0)