Question: package org.example; import javax.swing. * ; import java.awt. * ; import java.awt.geom. * ; public class Main extends JComponent { protected void paintComponent ( Graphics
package org.example;
import javax.swing.;
import java.awt.;
import java.awt.geom.;
public class Main extends JComponent
protected void paintComponentGraphics G
GraphicsD gd GraphicsD G;
gdsetColorColorRED;
gdsetStrokenew BasicStroke;
gdsetRenderingHintRenderingHintsKEYANTIALIASING, RenderingHints.VALUEANTIALIASON;
gdsetColorColorGREEN;
gdfillnew CubicCurveDDouble;
gdfillnew CubicCurveDDouble;
gdsetColorColorBLACK;
gddrawnew CubicCurveDDouble
;
gddrawnew CubicCurveDDouble
;
gddrawnew CubicCurveDDouble
;
public static void mainString args
int w ;
int h ;
JFrame Frame new JFrameLeaf in Hermite ;
Frame.getContentPanesetBackgroundColorwhite;
Frame.setSizew h;
Frame.addnew Main;
Frame.setLocationRelativeTonull;
Frame.setVisibletrue;
Frame.setDefaultCloseOperationJFrameEXITONCLOSE;
based on the prev draw me a Prophet's Dome of Masjid Nabawi
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
