Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 7 ■ IntroduCtIon to JavaFX 9: overvIew oF the JavaFX new MedIa engIne

As you can see in Figure 7-5 in the Javadoc information pop-up, a fallback (downgrade) method
automatically will be coded for a TRANSPARENT window (stage) decoration style to be UNDECORATED.
This features a background color of white and still removes the standard OS windowing chrome (title bar,
minimize, maximize, close, resize, etc.). Next, let’s test our code and see if the button is now floating over
whatever is behind it (in this case, this is NetBeans).


Figure 7-5. Type StageStyle and a period in the method parameter area to pop up a constant selector
NetBeans helper

Free download pdf