PromptDesign, implement and test a set of Java classes that allows.docx

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

Background image
PromptDesign, implement and test a set of Java classes that allows auser 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 with the draw method. For 3-D shapes, load an image from a file and display 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.Expert help so far, but 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