Question: 9 ) Please help with these and solve all tasks in JAVA Part A Search the Internet for information about how to use a JTextArea,
Please help with these and solve all tasks in JAVA
Part A
Search the Internet for information about how to use a JTextArea, its constructors, and its setText and append methods. Write an application called JDorm that allows the user to select at least four options for a dormitory room. Use JCheckBoxes for options such as private room, Internet connection, cable TV connection, microwave, refrigerator, and so on When the application starts, use a text area to display a message listing the options that are not yet selected. As the user selects and deselects options, add appropriate messages to the text area so it accumulates a running list that reflects the users choices.
Part B
Copy the contents of the JDorm.java file into the JDormjava file and modify the application so that instead of a running list of the users choices, the application displays only the current choices. Rename the class JDorm
info The selected choices listed in the JTextArea must match the text assigned to the JCheckBox.
An example of the program is shown below:
Task : Created the JDorm class.
Task : The JDorm program contains the correct components.
Task : The JDorm JTextArea is manipulated during JCheckBox selection.
Task : Created the JDorm class.
Task : The JDorm JTextArea contains the JCheckBox selections.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
