Talk:Draw Circle

From Progzoo
Jump to: navigation, search
static void drawFlag(Graphics2D g)
{
 g.setRenderingHint(
  RenderingHints.KEY_ANTIALIASING,
  RenderingHints.VALUE_ANTIALIAS_ON);
 g.setColor(Color.blue);
 g.fillOval(40,30,50,50);
 g.setColor(Color.gray);
 g.drawRect(40,30,50,50);
 g.setColor(Color.black);
 g.drawString("(40,30)",20,26);
 g.drawString("50",93,61);
 g.drawString("50",55,93);
}