Lab #2 GUI

$30.00

Category: Tags: , , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (3 votes)

In today’s lab we will create the following GUI
1. Start with the linked PizzaMenu Class
(https://raw.githubusercontent.com/cosc1047w18/course/master/Lab2/PizzaMenu.java)
Read through the comments and compile the code
Notice the purpose of the Layout, the Jpanel, and Button Group
What happens if you remove the button group (lines 18-21?) try it!
Using what you have learned, Create the Toppings Panel
i. JPanel to hold 6 JCheckBox components hint:
toppingPanel.add(new JCheckBox(“Peperoni”));
ii. GridLayout
iii. Add a border and border title to the panel
b. Create the Button Panel to hold two buttons (Continue and Exit) hiint:
JButton conButton = new JButton(“Continue”);
c. Add the Size Panel to the West, and the Toppings Panel to the Center and the Button
Panel to the South of the frame.