Overview

In the project you will construct a Java Swing GUI that uses event handlers and listeners while expanding on the project 1 Shape theme. Before completing this exercise, be sure to review and try the Java class and inheritance examples and materials found in this free Safari resource:

https://learning.oreilly.com/library/view/java-the-complete/9781260440249/

You should focus on Chapters 24, 25, 26, and 27

Assignment Details

Design, implement and test a set of Java classes that allows a user to select a shape from a list of available shapes, enter appropriate dimensional parameters and then display that shape in a frame of your Swing-based GUI. For 3-D shapes consider loading an image from a file and displaying that as a representative.

Your list of shapes should be similar, if not identical to the ones used in project one:

  • Circle
  • Square
  • Triangle
  • Rectangle
  • Sphere
  • Cube
  • Cone
  • Cylinder
  • Torus

Take advantage of various Swing AWT components including Layout Managers, Event Handlers, Listener Interfaces, Adapter Classes, Inner Classes, Buttons and other widgets as needed.

Take your time on understanding how the graphical components and listeners work so you can easily display appropriate actions based on any event.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.