Chapter 12 Lab
JavaFX: GUI Programming and Basic Controls Lab Objectives
Be able to create a basic JavaFX application with a closeable window
Be able to create Label controls, TextField controls, and Button controls
Be able to arrange controls in a layout container
Be able to construct a scene graph and set it to the stage
Be able to write an event handler that executes when a Button is clicked
Introduction
In this lab, you will create a tip calculator application with a JavaFX user interface. The application will let you enter the amount of a restaurant charge, and it will display the amount of a 20% tip. The completed user interface will look like this:
Restaurant Charge:
100.00