protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y)
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y)
  protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y)  {    int beginPositionX = x - icon.getIconWidth() / 2;    int beginPositionY = y - icon.getIconHeight() / 2;    icon.paintIcon(c, g, beginPositionX, beginPositionY);  }