Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095033

Mac OS: stage.getIcons().add(icon) should set the dock icon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8
    • javafx
    • None

      I wanted to set the dock icon in Mac and expected it to work the same way as setting the taskbar icon in Windows 7, namely with:

      stage.getIcons().add(myIcon).

      However, it doesn't work. Instead the default Java coffe cup icon is in the dock.

      After googling it turned out, that it can be done with a 3rd party library: com.apple.eawt.Application#setDockIcon

      In fact that works, but I'd like to see stage.getIcons().add() work the same way.

            anthony Anthony Petrov (Inactive)
            cschudtjfx Christian Schudt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: