Homework Help - p2.docx - Design implement and test a set...

This preview shows page 1 - 2 out of 4 pages.

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:CircleSquareTriangleRectangleSphereCubeConeCylinderTorusTake 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.Example of code however its incompleteimport java.awt.GridBagLayout;import java.io.PrintWriter;import java.util.Scanner;import javax.swing.JFrame;import javax.swing.JPanel;public class Shapes{public static JFrame window = new JFrame("Shapes");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture