Here you can find the source of drawDisc(Graphics g)
public static void drawDisc(Graphics g)
//package com.java2s; //License from project: LGPL import java.awt.Color; import java.awt.Graphics; public class Main { public static void drawDisc(Graphics g) { int width = g.getClipBounds().width; int height = g.getClipBounds().height; Color theColor = g.getColor(); g.setColor(Color.DARK_GRAY); g.fillOval(4, 4, width - 8, height - 8); g.setColor(theColor);//from w ww . j a v a 2s. co m g.fillOval(6, 6, width - 12, height - 12); } }