Re: macosx fullscreen and window manager
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 . cognitionmiss...@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 e...@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
Re: macosx fullscreen and window manager
Hi Erik, Not a full solution by any means - but in terms of the mouse pointer being shown, you could just set a blank cursor using setCursor(Cursor.NONE) on Scene. Thanks, Michael On 31 March 2014 11:54, Anthony Petrov anthony.pet...@oracle.com wrote: 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 . cognitionmiss...@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 e...@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
Re: macosx fullscreen and window manager
Hot corners and screen saver could just be turned off in system preferences. Then the cursor set to empty. If you need dynamic then you might be able to use something like JNA or JNIWrapper to make native call need to disable those things. Jasper On Mar 29, 2014, at 2:08 AM, Erik Colson e...@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
Re: macosx fullscreen and window manager
It doesn't hurt to enter a JIRA for this. Even if we don't get to it ourselves, any sort of solution that you might come up with (even Mac only) can be tracked there. Steve On 2014-03-31 11:03 AM, Jasper Potts wrote: Hot corners and screen saver could just be turned off in system preferences. Then the cursor set to empty. If you need dynamic then you might be able to use something like JNA or JNIWrapper to make native call need to disable those things. Jasper On Mar 29, 2014, at 2:08 AM, Erik Colson e...@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
macosx fullscreen and window manager
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
Re: macosx fullscreen and window manager
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 e...@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