Skip to content

Commit

Permalink
replacing module which isn't compatible with later versions of Java
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofahutmaker committed Apr 25, 2023
1 parent 4f515e6 commit bd38a8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/DesktopPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
import java.util.Map;
import java.util.Map.Entry;

import java.awt.Taskbar;

import javax.swing.ImageIcon;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JDialog;
Expand Down Expand Up @@ -204,7 +206,8 @@ public DesktopPane() {
if (isMacOSX()) {
// macos app icon
Image icon = new ImageIcon(this.getClass().getClassLoader().getResource("logo1024.png")).getImage();
com.apple.eawt.Application.getApplication().setDockIconImage(icon);
final Taskbar taskbar = Taskbar.getTaskbar();
taskbar.setIconImage(icon);

// System.out.println("Platform: macOS");
}
Expand Down

0 comments on commit bd38a8c

Please sign in to comment.