Hello -
I have been banging my head with the following and I really need help please. It was due last week and I submitted it but the professor rejected and said I will get 0 (zero) if I done update it.
Thank you so much in advance - Please let me know if I need to split my question as well. Please!!!!!!
Two essential problems with program.
(1) Uses Swing Gui Builder which is unacceptable. and
(2) the program is not structured as suggested by a d to the assignment. Please spend time reading all the information before attempting to write a program.
Programming Project 3 Assiggment Reguirements: Two documents are expected: { 1) One Java program containing all the code for the assignment. 1 do not accept multiple Java files in a single assignment folder and (2) a Test Plan document containing a table and screen captures. [Please review the infomration in the Project 3 Deliverables thread. All the attached files are there to aid in your skill development and enhanced knowledge] Caution: l often send feedback to you after reviewing your assignment. 1 always send it to your email account that UMGC has on record. it seems to happen often that the feedback email goes to SPAM. Please check your SPAM folder regularly to ensure you are not missing my communications. i expect a response to those emails that deal with feedback The third programming project involves writing one program that draws two types of shapes: ovals and rectangles. This program consists of five classes and a Program Core. The first class is the Shape class, which is an abstract class that extends the predefined Java class Rectangle. It should contain two instance variables, the color of the shape and the density of the shape [solid or hollow]. It should also contain a class (static) variable that keeps track of how many shapes have been created. It should have three instance methods, one class method, and one abstract method: 1. A constructor that accepts three parameters for the purpose of initializing the characteristit: of the shape: a. Rectangle object that denes the dimensions and position of the shape b. Color of the shape c. Density of the shape: solid or hollow [It should also update the number of shapes created from the beginning of the program] 2. An instance method named setColor that accepts the Graphics object as a parameter and sets the color for the next draw operation to the color of the current shape. 3. An instance method named getSolid that returns whether die shape is solid or hollow. 4. Aclass method named ggtNoDMges that returns the number of shapes created so far excluding processing errors, like an entry that is not an integer. 5. An abstract method named draw that accepts a Graphics object as a parameter. The Shape class has two subclasses: Oval and Rectangular. The first subclass is Oval. It should have the following two methods: CMISZ42 Project 3 Page 1 of 3 Fall 1010 1. A constructor that accepts three parameters for the purpose of initializing the characteristic of die shape, a Rectangle object that defines a. Dimensions and Position of the shape b. Color of the shape a. Density of the shape: solid or hollow 2. An overridden method draw that draws die Oval object on the Graphic: object passed as a parameter. The second subclass is Rectangular. It should have die following two methods: 1 . A constructor that accepts three parameters for the purpose of initializing the characteristics of the shape, a Rectangle object that defines a. Dimensions and Position of the shape b. Color of the shape c. Density of the shape: solid or hollow 2. An overridden method draw that draws the Rectangular object on the Graphics object passed as a parameter. The fourth class is named Drawing, which should extend the predened Java class JPanel. It has one instance variable that contains the shape that is currently drawn. It should have three methods: 1 . An overridden mintCamggnent method that draws the current shape on the Graphics object that is passed to it as a parameter. It should also draw the number of shapes that have been created thus far in the upper left comer. 2. An overridden gtPregrredSize method that specifies the dimensions of die drawing panel as 200 pixels wide and 200 pixels high. 3. An instance method named drawShage that is passed the current shape to be drawn. It first checks whether the shape provided is no greater than 20!! pixels x 200 pixels in width and height. This check has no relation to the coordinate positioning of the shape. If the parameters are greater than the shape, it throws an OutsideBnunds exception. Otherwise, it saves the shape in the corresponding instance variable. It then calls repaint to cause that shape to be drawn. For this program, the effect of positioning of the shape that might have part of the shape go outside one or more boundaries of the Drawing Panel should not be considered. [Example: The width of the shape is 190 and the x coordinate is 50. Those values combined will place the shape 40 pixels outside the light boundary of the Drawing Panel. Do not consider these scenarios for this project.] No additional public methods should be included in any of the above classes. The fifth class named Outside-Bound: should define a checked exception. CMISZ42 Project 3 Page 2 of 3 Fall 2020 w m .=. The Program Core should contain the main method. It should generate the GUI shown below: Geometric Drawings X Shape Drawing Shape Type Oval Shapes: 6 Fill Type solid Color Blue Width 100 Height 150 X Coordinate 80 Y Coordinate 70 Draw The combo-box for the Shape Type should allow two choices, either Rectangle or Oval. The combo-box for the Fill Type should also allow two choices, either Hollow or Solid. The combo-box for the Color should allow seven choices, Black, Red, Orange, Yellow, Green, Blue, or Magenta. Clicking the Draw button should first check whether any non-integer values have been entered in any of the fields that require integers. If so, an error message should be displayed in a JOptionPane window for the specific TextField without the integer. A generic message is not acceptable. Otherwise an appropriate Shape object should be created and passed to the drawShape method of the Drawing class. If that call results in an OutsideBounds exception being thrown, an appropriate error message should be displayed in a JOptionPane window. Note: only successful shapes that are displayed add to the count for Shapes. It might be more user-friendly to add two additional buttons to the Geometric Drawing Window: (1) a Clear Field button for the width, height, and two coordinates TextFields and (2) an Exit button to end the program in a user-friendly manner. Be sure to follow good programming style, which means making all instance variables private, naming all constants, and avoiding the duplication of code. Furthermore, you must select enough different kinds of shapes for a comprehensive Test Plan for the program. CMIS242 Project 3 Page 3 of 3 Fall 2020