Question: Note: the display message stating which button was clicked should be displayed on the window screen, not on the console/output screen. Thank you To write

Note: the display message stating which button was clicked should be displayed on the window screen, not on the console/output screen.
Thank you
To write a program that illustrates how to code a box with buttons on the screen and to create an event class to handle the click of a button. Problem Statement Write a program using a layout manager. You must write the program to meet the following criteria: 1. 2. Create a window with a layout. Add 6 buttons to the window, each with a number to identify it - such as Buttonl, Button2, Button3, Button4, Button5, Button6. When a button is clicked, it will create an event object. Create a listener object that will respond to the event object by displaying a message to the screen stating which button was clicked. 3. 4. Hint: Make a separate class to handle the event (clicking the button)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
