JavaFX application over another fullscreen program on MacOS

I've been working on MacOS for some weeks now, I noticed that applications can't be overlapped over fullscreen applications.

BUT is there actually a way to change the properties of a stage in my case the primaryStage to overlap it over a fullscreen program, e.g. over Firefox or is this ossided not possible?

I have tried:


Which is always on top of non fullscreen applications, but I am not able to drag it over fullscreen applications.

Any idea?
Plain code:

Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
Scene scene = new Scene(root, 300, 275);

1 answer

  • answered 2019-08-16 10:12 Seema Kumari

    A JavaFX Stage corresponds to a window in a desktop application Width and Height; Stage Modality; Stage Owner; Stage Style; Stage Full-Screen Mode where you can create a JavaFX Stage object just like any other Java object used Simple creating a JavaFX Stage object will not show it.