Java Reference
In-Depth Information
Figure 15-10 . Modena Look and Feel
Figure 15-11 depicts the Control Style 1 Look and Feel (theme).
Figure 15-11 . Control Style 1 Look and Feel
How It Works
JavaFX has the capability to apply CSS styles to the scene graph and its nodes just like
browsers apply CSS styles to elements in an HTML document object model (DOM). In
this recipe, you will be skinning a user interface using JavaFX styling attributes. You
basically use the recipe's UI to apply the various Look and Feels. To showcase the
available skins, a menu selection allows the users to choose the Look and Feel to apply
to the UI.
Before discussing the CSS styling properties, take a look at how you load the CSS
styles to be applied to a JavaFX application. The application in the example uses menu
 
 
Search WWH ::




Custom Search