Option to keep Stages always on top on JavaFX 8 ?

Anthony Petrov anthony.petrov at oracle.com
Mon Dec 16 05:54:06 PST 2013

Hi Peter,

You might want to watch this bug:


best regards,

On 12/16/2013 12:22 PM, Peter Penzov wrote:
> Hi All,
>     I'm also interested in this. Can you share some information?
> Regards,
> Peter
> On Thu, Dec 12, 2013 at 12:27 AM, Herve Girod <herve.girod at gmail.com> wrote:
>> I know that this option is not available for JavaFX 2.2, but is it planned
>> for Java 8, and for what time frame if the answer is yes (for example, for
>> initial release or later ?) .
>> This is an important feature for us, because we need to show JavaFX content
>> on top of Windows created on other programs (for example, elements on top
>> of a cartographic system produced by a C++ program, but it's just an
>> example).
>> As there is no alwaysOnTop API on Stage in JavaFX, a workaround is to
>> create a Swing Window, put a JFXPanel in it, and the Scene in the JFXPanel.
>> However, multitouch gestures are not handled by Swing, so these are not
>> working in this case.
>> Our only option is then to put a Stage toFront(), and hope that the other
>> content won't pop on top of JavaFX while the user click on it.
>> This is OK if no part of our Stage need to be transparent to user events,
>> and also if all of the other Windows are created prior to the JavaFX stage
>> is created, but it is not always possible, and we envision cases where our
>> workaround won't work.
>> Regards,
>> Hervé

More information about the openjfx-dev mailing list