QuestionQuestion

Write a GUI application that allows a user to select specific options for a dorm room from the available list of options. Use JCheckBoxes placed on JFrame to allow selections of a private room option, internet connection, cable TV connection, microwave, and refrigerator. Also – have a text area to show the choice made.

When the application starts, the text area will display a message listing the options which can be selected. As the user selects and deselects options, the proper additions to that message will be made.
Compile, run, and check the results.

Submit the following:
The source file (if more than one file has been created, zip them into one .zip file for posting).
MS .doc file with explanations/comments of your solution and the results of a test run, including a screen shots.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public class Assignment6 extends JFrame implements ItemListener{

    // attributes
    private JCheckBox [] boxs;
    private boolean [] check;
    private JTextArea area;
    private String [] content;
   
    /**
    * constructor
    */
    public Assignment6() {
       super("Assignment 6");
       setSize(300,250);;
       setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       setLayout(new BorderLayout());
      
       // what is show on the screen
       content = new String[] {"internet connection", "cable TV connection", "microwave", "refrigerator"};      
      
       boxs = new JCheckBox[content.length];
       check = new boolean[content.length];
       // panel to hold checkboxes
       JPanel checkbox = new JPanel(new GridLayout(4, 1, 1, 1));...
$25.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats