Question: a. Search the Java website for information about how to use a JTextArea, its constructors, and its setText() and append() methods. Write an application that

a. Search the Java website for information about how to use a JTextArea, its constructors, and its setText() and append() methods. Write an application that allows the user to select 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 common text area so it accumulates a running list that reflects the user’s choices. 

Save the file as JDorm.java.

b. Modify the JDorm application so that instead of a running list of the user’s choices, the application displays only the current choices. Save the file as JDorm2.java.

Step by Step Solution

3.48 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a JDormjava import javaawt import javaxswing import javaawtevent public class JDorm extends JFrame implements ItemListener FlowLayout flow new FlowLayout JCheckBox privateRm new JCheckBoxPrivate JChec... View full answer

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 Java Programming Questions!