import java.awt.*; import java.awt.geom.*; public class Kujund4 extends Canvas{ public void paint(Graphics alggr){ Graphics2D g=(Graphics2D)alggr; BasicStroke b1=new BasicStroke(15, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL); BasicStroke b2=new BasicStroke(3); Shape kujund=b1.createStrokedShape( new Ellipse2D.Float(100, 100, 50, 70) ); Shape kujund2=b2.createStrokedShape(kujund); g.draw(kujund2); } public static void main(String argumendid[]){ Frame f=new Frame(); f.add(new Kujund4()); f.setSize(300, 200); f.setVisible(true); } }