JDK-8116668 : Stage Icons don't load on OSX
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0.2
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2011-11-29
  • Updated: 2015-06-17
  • Resolved: 2013-01-05
Related Reports
Relates :  
Relates :  
Description
When using the following settings to set the icons for the application launch. They work on windows but not on OSX

		Image icon64 = new Image(getClass().getResource("flag-aud.png").toExternalForm());
		stage.getIcons().addAll(icon64);

On OSX you just see the standard java icon.
Comments
Not targeted for FX 8. As Steve pointed out with his last comment, we will likely close it as "Won't Fix".
06-11-2012

We should close this as WONTFIX. Applications should not expect to set the icon on a window and have it be set for the desktop.
29-05-2012

The icon will show up if the application is bundled up correctly as any native Mac app. We still have not decided what to do on Mac OS X with: Image icon64 = new Image(getClass().getResource("flag-aud.png").toExternalForm()); stage.getIcons().addAll(icon64); Related to RT-18693
29-05-2012

When packed up the icon does show up on a MAC, so maybe just in development mode it does not.
19-05-2012

We need to decide whether we can support this API for 2.2 or not.
19-05-2012

This API might never be supported on Mac platform, the final decision regarding this API, however, has not been made yet. The proper way to set the Application icon and name on Mac OS X is to wrap JFX into Application Bundle as described in Apple documentation: https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW13
05-04-2012

Please add a comment to this bug indicating what specific information should be included in the JavaFX 2.1 Release Notes.
16-03-2012

Defer / Arch On Windows, the icon for the appication in the window trim. On OS X, the icon for the application is in the doc. Given that there are fundamental differences here, expecting Mac to behave like Windows here doesn't seem right. Further, appliations on OS X set their icon in the .app file. We should investigate this again for 2.2.
12-03-2012

SQE: can we take a day to look at this?
12-03-2012

Too late for 2.1, so defer to 2.2. When we do implement this, we need to rationalize the current JavaFX API which allows for a separate icon for each Stage with the Mac application model of a single icon for the app.
01-03-2012

added 2 sprints ... 1 to evaluate, 2 to take action to fix (either in glass or prism).
05-01-2012