You are on page 1of 1

Lab #7

Write a GUI program as shown below. The program has a BorderPane that contains the following
components: a combo box (Top), a text area (Center), a ToggleGroup with three radio buttons (left), and
a Submit button (Bottom).

The lunch menu contains three items: "Hot Dog", "Sandwich", and "Hamburger". Once the user selects
a lunch item, a drink and clicks the "Submit" button, the total will be displayed in the text area. You may
make up whatever prices you wish for each food and drink item.

You must demonstrate each of the event handling techniques: an inner class, an anonymous class, and
a lambda notation handler.

This question was supplied by Dr. George Townsend, modified by Michael Lajoie Spring 2021

You might also like