Color dark = MetalLookAndFeel.getControlDarkShadow(); Color light = MetalLookAndFeel.getWhite(); g.translate(x, y);
Color savedColor = g.getColor(); JRadioButton b = (JRadioButton) c;
    public void paintIcon(Component c, Graphics g, int x, int y)    {      Color dark = MetalLookAndFeel.getControlDarkShadow();      Color light = MetalLookAndFeel.getWhite();      g.translate(x, y);      // The light 'circle'      g.setColor(light);      g.drawLine(4, 1, 10, 1);      g.drawLine(2, 2, 3, 2);      g.drawLine(8, 2, 11, 2);      g.drawLine(2, 3, 2, 3);      g.drawLine(11, 2, 11, 9);      g.drawLine(1, 4, 1, 7);      g.drawLine(12, 4, 12, 7);      g.drawLine(2, 8, 2, 11);      g.drawLine(11, 8, 11, 9);      g.drawLine(10, 10, 10, 10);      g.drawLine(2, 11, 9, 11);      g.drawLine(4, 12, 7, 12);      // The dark 'circle'      g.setColor(dark);      g.drawLine(4, 0, 7, 0);      g.drawLine(2, 1, 3, 1);      g.drawLine(8, 1, 9, 1);      g.drawLine(1, 2, 1, 3);      g.drawLine(10, 2, 10, 3);      g.drawLine(0, 4, 0, 7);      g.drawLine(11, 4, 11, 7);      g.drawLine(1, 8, 1, 9);      g.drawLine(10, 8, 10, 9);      g.drawLine(2, 10, 3, 10);      g.drawLine(8, 10, 9, 10);      g.drawLine(4, 11, 7, 11);      JRadioButton rb = (JRadioButton) c;      if (rb.isSelected())        drawCheck(c, g);      g.translate(-x, -y);    }