Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Production ready solution for full screen?

MuratDec 1 2011 — edited Dec 2 2011
I am creating a full screen application (simulation/game). Full screen is part of the requirements.

So I set:

primaryStage.setFullScreen(true);

and then add the scene to the stage:

primaryStage.setScene(aScene);

When I run the application I immediately get the message "Press escape to exit full screen mode" on top of the screen (covering the company logo is usually not a good idea). The message fades after a bit.. but then I go to the next scene

primaryStage.setScene(aNewScene);

and the message "Press escape to exit full screen mode" covers the screen again (and I assume it will do this every time I change scenes). This will obviously not fly. Any idea how I get rid of these messages once and for good. Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2011
Added on Dec 1 2011
11 comments
621 views