Question: 1. Complete a Graphic User Interface (as shown below) program, simulating the front view of an oven. Write code segments following requirements from comments. (10


1. Complete a Graphic User Interface (as shown below) program, simulating the front view of an oven. Write code segments following requirements from comments. (10 marks) The Front view of a Microwave Oven - Ox Time to be displayed here 2 3 5 Food to be placed here 7 8 9 Start Stop import java.awt.; //import the package for swing public class TestPanels _2_{ //Inherit Frane public TestPanels() { super("The Front view of a Microwave Oven"); _____ //set the size of the frame to 489 250 setLocationRelativeTo(null); _4_; //set default close operatioin to EXIT_ON_CLOSE JPanel pi . new JPanel(); _; //set the layout for pi to GridLayout, 4*3 // Add buttons to the panel for (int i = 1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
