private static void paintBorder(Graphics g, ImageComponent ic) {
    Dimension size = ic.getSize();
    g.setColor(ic.getTransparencyChessboardBlackColor());
    g.drawRect(0, 0, size.width - 1, size.height - 1);
  }
private static void paintBorder(Graphics g, ImageComponent ic)