JRadioButton rb = (JRadioButton) c; if (rb.isSelected()) drawCheck(c, g);  g.translate(-x, -y);
if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite());   g.drawLine(x + 10, y + 1, x + 10, y + 1); g.drawLine(x + 11, y + 2, x + 11, y + 3); g.drawLine(x + 12, y + 4, x + 12, y + 7); g.drawLine(x + 11, y + 8, x + 11, y + 9); g.drawLine(x + 10, y + 10, x + 10, y + 10); g.drawLine(x + 8, y + 11, x + 9, y + 11); g.drawLine(x + 4, y + 12, x + 7, y + 12); g.drawLine(x + 2, y + 11, x + 3, y + 11); }  if (b.isSelected()) { g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 4, y + 3, x + 7, y + 3); g.fillRect(x + 3, y + 4, 6, 4); g.drawLine(x + 4, y + 8, x + 7, y + 8); } g.setColor(savedColor);
    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);    }