I am currently implementing an ScalaFX application which needs to get on top of all other (non related applications, arbitrary OS windows) windows when a specific event occurs. I searched the Internet and found some answers which are kind of a hack for the required behavior. However, none of this worked. I tested so far:
- setFocused routine
- set modality
- using JSwing dialog (results in non reactive window)
It seems there has been a fix in Java 8u20 by introducing a property alwaysOnTop, however I cannot install 8u20 on the targeting machines, and have to use Java 7 instead.
Is there a proper fix around to set a Window (not always, but at specific event) on top of all windows?