JDK-8090714 : Add Stage/Application functionality to request user attention.
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-01-22
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
I need the functionality to request user's attention for my application or a single stage.

In Windows 7 this can currently be done with the Stage.toFront() method, which makes the task bar icon blink.

For Mac OS X there's a functionality, which makes the dock icon bounce (and toFront() just brings the Stage to front without bounce)
See:
http://stackoverflow.com/questions/15079783/how-to-make-my-app-icon-bounce-in-the-mac-dock

For Mac you need a 3rd party library and then call:
com.apple.eawt.Application.getApplication().requestUserAttention(false);


It would be nice, if javafx.application.Application had a method like this:
javafx.application.Application#requestUserAttention(boolean)

which would make the application blink in the task bar for Windows 7 and make it bounce in the dock for Mac OS X. (other platforms needs to be evaluated).

Maybe such a method could also be available for Stage.

Similar methods/functionality from com.apple.eawt.Application could also be evaluated (e.g. populating Dock or Taskbar menu), but this should probably be another feature request.
Comments
Yes, it seems related to that issue. Note that EAWT are mostly Mac-specific APIs, so for now I'd prefer to keep both issues open since requesting user attention is a universal feature available on all platforms.
22-01-2014

I guess, this request is at least related to RT-18866 (if not duplicate).
22-01-2014