Java Draw Cylinder Cube Circle

There are no predefined methods to draw a cylinder, cube and circle. Using existing methods of Graphics class like drawOval(), drawRect(), drawArc() etc., the task can be done. import java.awt.*; import java.awt.event.*; public class SpecialFigures extends Frame { public SpecialFigures() { setTitle(“Special Effects”); setSize(450,550); setVisible(true); } public void paint(Graphics g) { // to draw a …

Java Draw Cylinder Cube Circle Read More »