Question: Write code that asks the user to press any letter key on the keyboard. When the user presses a letter key, display that letter on
Write code that asks the user to press any letter key on the keyboard. When the user presses a letter key, display that letter on the GUI prominently (example provided). This is best accomplished with a label. If the user hits space, you should toggle the color the font is displayed in. Use three colors of your choice. You may use any font you wish, and can set a fonts label using the .setFont method. If the user hits any key other than a letter or space, tell them they hit an improper key using some sort of message. For example, hitting the alt key should send them some kind of message.
Three examples shown next to each other:

Letter GUI Letter GU Letter GUI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
