Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show me code(Eclipse) and ALL testing and outputs (screenshots) Develop a Java program with a graphical user interface (GUI) to render 2D objects based

Please show me code(Eclipse) and ALL testing and outputs (screenshots)

Develop a Java program with a graphical user interface (GUI) to render 2D objects based on user input, visualize some transitions between states and demonstrate how youve preserved states between transitions. You must use JavaFX to implement the GUI components.

Assessment Tasks

Given the brief stated above, your tasks are as follows:

  1. Implementation: Create a class called Shapes. Implement the functionality from the brief stated below, ensuring that you have covered all points.

  2. Functionality/Testing: Show evidence that ALL the methods in the Shapes class and the options in the GUI have been individually tested and that the Shapes class can be compiled and run from the command line.

The program should have the following functionality:

  1. An interactive component which has the following actions associated to it; the component can accept user input, where assuming the input is valid, a shape will be displayed on the main screen. The program should accept the following shapes as input: triangle, rectangle, hexagon.

    1. You need to ensure that the user input is validated, and feedback is given when invalid input is entered.

    2. The program should only allow the user to enter one valid shape at a time.

    3. The main screen should only display one shape at a time.

  2. An interactive component which has the following actions associated to it; the component can accept user input, where assuming the input is valid, the currently displayed shape will be filled using the color of the valid input. The program should accept the following colors as input: red, green, grey.

    1. You need to ensure that the user input is validated, and feedback is given when invalid input is entered.

    2. The program should only allow the user to enter one valid color at a time.

    3. The currently displayed shape should only be filled with one color at a time.

  3. Any potential error states should not crash the program or generate generic error messages. The program should clearly indicate to the user that an error has occurred, with specific information on why the error occurred and what valid action(s) are available.

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

Prepare a constructive performance appraisal.

Answered: 1 week ago