Part 1 is the only part to this lab Create a folder named Un
Part 1 is the only part to this lab. Create a folder named Unit08 and place all your files for this assignment in that folder. You will create a program called Unit08_Prog 1.java. This program will display a graphical user interface (GUI) that looks like Illustration 1. The window has a title of \'\"Unit08_Prog1\" and three panels sucked one on top of the other. The top most panel has a text label that says \"Select Message Background\". The panel holds five radio buttons, one for each color of: Red, Yellow, White, Gray and Green. The White radio button is set by default. Clicking on a radio button will change the background color of the text area in the second panel. See Illustration 2. The second panel contains a JTextArea that contains \"Welcome to Java\" as the default text. The text area is set to be lines tall. The text area is as wide as the window (pick a layout manager to do this). The text area is editable (the user can type in it) and will scroll if the user types in enough lines. See Illustration 3. The third panel contains two buttons: Clear and Quit which have Mnemonics of \"C\" and \"Q\" respectively. The Clear button has a tool tip that says, \"Clear the text area to the default text\" and the Quit button has a tool tip that says, \"Quit the program\", Pressing the Clear button will cause the text area to return to the default text contents as in Illustration 1. Clicking on the Quit
Solution
THe clear button will clear the options that are benn choosen, in illustration two , the yellow radio button is selected. Once clear is given the back ground colour as well as the contents in the text editing area , also will be disappeared.
Then the white background radio button will be enabled as usual and default window will be displayed.
