0% found this document useful (0 votes)
189 views

COSC1047T21SF Lab7

The document describes a GUI program with a BorderPane containing different components: a combo box on top to select a lunch item, a text area in the center to display totals, radio buttons on the left in a ToggleGroup to select a drink, and a submit button on the bottom. The program calculates and displays totals when a user selects a lunch from three options, a drink, and clicks submit. It must demonstrate event handling with an inner class, anonymous class, and lambda notation.

Uploaded by

Bhavik Dave
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
189 views

COSC1047T21SF Lab7

The document describes a GUI program with a BorderPane containing different components: a combo box on top to select a lunch item, a text area in the center to display totals, radio buttons on the left in a ToggleGroup to select a drink, and a submit button on the bottom. The program calculates and displays totals when a user selects a lunch from three options, a drink, and clicks submit. It must demonstrate event handling with an inner class, anonymous class, and lambda notation.

Uploaded by

Bhavik Dave
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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