I am trying to set the Dock icon in Java 9.
With previous versions of Java this was possible with something like
com.apple.eawt.Application.getApplication().setDockIconImage(image);
but unfortunately with Java 9 the Application class is obsolete and inaccesible (maybe also missing?).
For all other tasks found in Application class, the java.awt.Desktop
class took this functionality, all but the Dock manipulation.
In JEP 272 this change is mentioned, as well as the idea that Dock is too much Apple-oriented (for me all are Apple oriented) and there is no clear explanation about it.
A Google search also has pre-9 information on how to deal with this.
Does anyone have any idea how's done now with Java 9?
Window#setIconImages
to actually work under MacOS, I can't see away around it without using JNI/JNA – MadProgrammer