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,

9) 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 JDorm2.java 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 JDorm2.
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 1: Created the JDorm class.
Task 2: The JDorm program contains the correct components.
Task 3: The JDorm JTextArea is manipulated during JCheckBox selection.
Task 4: Created the JDorm2 class.
Task 5: The JDorm2 JTextArea contains the `JCheckBox selections.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!