1 import java.awt.*; 2 import java.applet.*; 3 4 public class mRound extends mPoint { 5 6 public mRound(int _x, int _y, int _x2, int _y2) { 7 super(_x, _y, _x2, _y2); 8 }; 9 10 public void draw(Graphics g) { 11 if (fill) { 12 g.setColor(Color.black); 13 g.fillRoundRect(x, y, x2-x, y2-y, 100, 50); 14 g.setColor(Color.yellow); 15 } 16 g.drawRoundRect(x, y, x2-x, y2-y, 100, 50); 17 } 18 }