Here you can find the source of drawCircle5(Graphics g, int x, int y)
static public void drawCircle5(Graphics g, int x, int y)
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { static public void drawCircle5(Graphics g, int x, int y) { if (!(g instanceof Graphics2D)) { g.drawOval(x - 2, y - 2, 4, 4); return; }/*from w w w. j a v a2s.c o m*/ g.drawLine(x - 2, y - 1, x - 2, y + 1); g.drawLine(x + 2, y - 1, x + 2, y + 1); g.drawLine(x - 1, y - 2, x + 1, y - 2); g.drawLine(x - 1, y + 2, x + 1, y + 2); } }