change icon displayed in title bar for a java desktop app

13,697

Please have a look at these links:

how-do-i-change-the-default-application-icon-in-java
how-do-i-set-an-applications-icon-globally-in-swing

Share:
13,697
Mihaela Grigore
Author by

Mihaela Grigore

Updated on June 04, 2022

Comments

  • Mihaela Grigore
    Mihaela Grigore almost 2 years

    I have a Java Desktop Application project created with NetBeans. The icon that is displayed in my main window's titlebar, by default, is the java logo. The same logo is displayed when I minimize this window to the Taskbar.

    I would like to change this icon with one specific to my application, but didn't find how.

    Thanks