Skip to content

Commit 4f7ee7c

Browse files
authored
demonstration of round rectangle
1 parent 1371881 commit 4f7ee7c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.awt.*;
2+
import java.applet.*;
3+
4+
/* <applet code = "RoundRectangle" height = "300" width = "300"></applet> */
5+
6+
public class RoundRectangle extends Applet {
7+
8+
public void paint(Graphics g) {
9+
g.setColor(Color.GREEN);
10+
g.fillRoundRect(10, 10, 40, 40 ,5, 5);
11+
}
12+
}

0 commit comments

Comments
 (0)