macosx fullscreen and window manager

Erik Colson eco at ecocode.net
Sat Mar 29 12:06:33 UTC 2014


On March 29, 2014 12:43:18 PM CET, "cogmission1 ." <cognitionmission at gmail.com> wrote:
>Hi,
>
>Just as a clarification, it sounds like what you're asking for is kind
>of
>like a "Kiosk" mode?
>
>
>On Sat, Mar 29, 2014 at 4:08 AM, Erik Colson <eco at ecocode.net> wrote:
>
>> 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
>>

Yep. That's it!
--
erik colson


More information about the openjfx-dev mailing list