Question: Please iread carefully and nclude comment // while you write the code. Thank you Objective To build a complete working Java program that includes a

Please iread carefully and nclude comment // while you write the code. Thank you

Objective

To build a complete working Java program that includes a variety of user interface components.

Overview & Instruction

Write a Java application that acts as a "front-end" GUI to set preferences for a computer game.

Include the following components for user data entry:

Text field to enter a username for the player. Include appropriate labels.

Check box indicating whether or not the user wants emails or text messages from the game company.

Radio button group for choice for game complexity level (Beginner, Experienced, Advanced, Expert) .

Slider bar to provide the means to select the game speed. Create a slider bar range from 0 ... 100.

Drop-down list for identifying the user's choice for color of their game piece. Include at least five colors of your choice

Text area that will display the current values for the complexity level (via radio buttons), game speed (via slider), and color (via drop-down list). This implies listeners to update the text in the text any time these components are updated.

Button to "submit" or "send the information"

The context of this assignment is to build the "front-end" GUI for what is likely a far more complex application. To capture the information design a simple class that includes required constructors, set/get methods, and a toString() method (that returns all collected info as one String object), but nothing else. When the button is pressed, collect the input from the interface and "set" the data into one object of your class. To display the information, design the button click to present the output as a string within a dialog box. Produce the string via a call to the toString() method .

Arrange the GUI components the best that you can by managing the order that they are added to the window as well as the window size itself. You may choose any layout management scheme you would like for this program.

Finally, be sure your interface/class is set up to handle an immediate user button click. Have default values or setting included to avoid any runtime exceptions from this action.

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!