macosx fullscreen and window manager

Erik Colson eco at ecocode.net
Sat Mar 29 09:08:03 UTC 2014


Hi,

Is it possible to use JavaFX for developping a fullscreen macosx
application that skips the window manager ? I have currently an app that
does fullscreen but :
- the 'hot corners' still work, letting the user switch to another app
- the screensaver is still working
- the mouse pointer is still shown

The app is ment to become something like a Slideshow. Therefor those 3
points need to be solved.

This is what I have for now:

Screen screen = Screen.getPrimary();
primaryStage.initStyle(StageStyle.UNDECORATED);  
primaryStage.setResizable(false);
primaryStage.setIconified(false); 
primaryStage.setFullScreenExitHint("");
primaryStage.setFullScreen(true);
primaryStage.setScene(scene);
primaryStage.toFront(); // not really needed I think
primaryStage.centerOnScreen();
primaryStage.show();

thanks !
-- 
erik colson


More information about the openjfx-dev mailing list