macosx fullscreen and window manager
Anthony Petrov
anthony.petrov at oracle.com
Mon Mar 31 10:54:14 UTC 2014
Hi Erik,
What you're asking for is kind of "exclusive full screen mode" (as it's
known in AWT/Swing). And no, JavaFX does not support this currently.
Please file a new issue in JIRA at https://javafx-jira.kenai.com/
PS. Regarding your current code: you don't really need to call
setResizable, setIconified, toFront, or centerOnScreen() because these
calls are useless for a full screen window.
--
best regards,
Anthony
On 3/29/2014 4:06 PM, Erik Colson wrote:
> 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