Question: 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

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!