Write a small application with a GUI that could be the basis of a larger application. Your application will ask the user three questions. You will need three labels for the questions and three corresponding text fields for the user’s answers. When the user presses an Accept button, you should check whether each text area contains a nonempty string. If each does, display the message Your answers have been recorded. on a result label. If not, change the color of the label holding the question for the blank text field to red and display the message You must answer all questions on the result label.
What will be an ideal response?
See the code in Exercise14.java, QuestionaireWindow.java.
Computer Science & Information Technology
You might also like to view...
The file extension used for HTML text files is ________
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
Consider the following button element, which executes a computation and displays the result when clicked:
``` ``` Create a Web page named number.html that contains the above button. Mathematically speaking, multiplying x * (1/x) should yield 1, regardless of the particular value of x. Click the button and report the value that is displayed in the alert window. If it is not 1, can you explain why not?
Computer Science & Information Technology