Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago