1

When i run my Java Swing application on Mac OS X, then i click + Options + Esc on my keyboard to run the "Force Quit Applications" window, i see my program having a terminal icon.

I have tried using this tag in the info.plist file but it didn't make any difference:

<string>-Xdock:icon=../Resources/prog_icon.icns</string>

How can i replace this icon with another one of my own?

enter image description here

Brad
  • 4,457
  • 10
  • 56
  • 93
  • Does this answer your question: [How do you change the Dock Icon of a Java program?](https://stackoverflow.com/questions/6006173/how-do-you-change-the-dock-icon-of-a-java-program) If you are using Java 9 or newer then scroll down to the answer about Java9+. The other option is to bundle your jar into a native app using a tool that will correctly show the icons. – sorifiend May 02 '21 at 23:20
  • @sorifiend ... I've followed the solution in this question but it didn't show the icon in the Force quit menu! – Brad Jul 31 '21 at 07:57

0 Answers0