I tried to set the name and icon of the application for the Mac OS X dock in my Java program. I used the following code:
public static void main(String[] args) { Application.getApplication().setDockIconImage(icon);
The icon object is java.awt.Image. The Alfabet class creates the main program JFrame. The icon is displayed correctly, but the application name is not displayed; it still displays the name of the main class of the program. What am I doing wrong? Thanks.
source share