-
Book Overview & Buying
-
Table Of Contents
JavaFX 1.2 Application Development Cookbook
By :
As your code grows in complexity, you will find it necessary to arrange your scripts into well-organized modular structures. This will help your codebase to scale in size to handle organizational complexities. This recipe addresses the facilities and practices available for JavaFX to implement code modularization.
The concepts presented here deal with logical modularity of your code (physical modularity, creating jars, is covered in Chapter 7, Deployment and Integration). JavaFX provides high-level abstractions to represent code organization including packages, modules, and classes. If you have written code in other high-level languages, you will be familiar with the concepts presented here. For background information, see http://en.wikipedia.org/wiki/Modular_programming.
To illustrate JavaFX modularization, we will create a script module and use its members to show how modules expose their members. The full code listing for this...
Change the font size
Change margin width
Change background colour