APPLETS

12. Create an applet in Java to draw rounded rectangle.

            import java.applet.Applet;
            import java.awt.Graphics;
            
            public class MyApplet10 extends Applet
            {
               public void paint(Graphics g)
                {
                          g. drawRoundRect(200, 200, 150, 100, 50, 50);
                 }
            }
            /*<applet code="MyApplet10.class" width="500" height="500"></applet>*/
            
        

OUTPUT

roundedrectangle