Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Mac OS X: Is there something like com.apple.eawt to set dock icon?

cshJan 21 2014 — edited Jan 21 2014

Hi,

I want to set the dock icon of my application in Mac OS X.

I have expected that it can just be set with the stage.getIcons().add("icon") because that's the way how it works in Windows 7.

After I googled, I found that it can be done with a library: com.apple.eawt.

There are also other thing like bouncing icon in the dock:

http://stackoverflow.com/questions/15079783/how-to-make-my-app-icon-bounce-in-the-mac-dock

I would have guessed, that stage.toFront() would make it bounce, because in Windows 7 that method makes the application blink in the task bar (it's quite similar).

I'd like to see an API for things like that in JavaFX. Is there already a feature request?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2014
Added on Jan 21 2014
3 comments
2,617 views