1-7. Creating Menus
You want to create standard menus in your JavaFX applications.
Employ JavaFX’s menu controls to provide standardized menuing capabilities such as check box menus, radio menus, submenus, and separators. The following are the main classes used to create menus.
The following code calls into play all the menuing capabilities listed previously. The example code will simulate a building security application containing menu options to turn on cameras, sound an alarm, and select contingency plans.
primaryStage.setTitle("Chapter 1-7 Creating Menus"); Group root = new Group();
Scene scene = new Scene(root, ...