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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: