Draw Round corner Rectangle in java applet

Hello Friends, 

Today I will explain how can we draw Round Rectangle in java applet.
In this  program I have print simple Round Rectangle but you can draw different shapes with different size.


import java.awt.*;
import java.applet.*;
import java.awt.event.*;

/*


*/

public class twelve extends Applet
{
public void paint(Graphics g)
{

g.drawRoundRect(190,80,60,50,30,30);

g.fillRoundRect(290,20,90,70,30,30);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *