Question: Create two classes following the model shown in Chapter 19. Assuming your data forms subject is X (though I expect better names), you need to

Create two classes following the model shown in Chapter 19. Assuming your data forms subject is X (though I expect better names), you need to provide the following classes:

  1. XFormFrame, as a subclass of JFrame, responsible for creating and operating the form
  2. XFormViewer, your main program responsible for creating the frame and displaying it

Your form must meet the following content requirements:

  1. All components must be organized into panels
  2. It must use both BorderLayout and GridLayout
  3. It must contain at least one of each of the following controls:
    1. Labels (where needed in conjunction with other controls, and/or as informational text)
    2. Text fields
    3. Radio buttons
    4. Checkboxes
    5. Combo boxes
    6. One scrollable text area labelled Results (see point g. below)
    7. One button labelled Done
      1. When this button is clicked, the program should generate a string describing the content of the data in the form, and append this text to the Results text area
      2. E.g., using the form for the pizza example on page 860 of the textbook, your string might look like this:

Pizza Order Size: Small Add-ons: Peperoni, Anchovies, Price: $12

  1. It must include a menu, with at least one menu item being Exit to be used for ending the program (use System.exit() to achieve this)

The book is Big Java: Early Objects, Interactive Edition, 6th Edition

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 Databases Questions!