-
Book Overview & Buying
-
Table Of Contents
JavaFX 1.2 Application Development Cookbook
By :
As we have seen in the previous recipe, Building a JavaFX application, the Stage represents the outer-most window of a desktop application. The stage encapsulates many properties that control how the window is styled on the screen. This recipe explores how to control and change the style and behavior of your application's window.
Window style, in this recipe, refers to the border decoration that goes around the application window displayed on the screen. In this context, style does not refer to other attributes such color, size, and so on. Using the style attribute of the window, for instance, you can make a chromeless window: that is, when the border and all other window controls are removed from the window.
To change the style of your application's window, you set the value of the style property of the Stage as shown next. The full listing of the code for this recipe can be found in ch02/source-code/src/application...
Change the font size
Change margin width
Change background colour