private static int getTextBaseLine(Component c) {
    FontMetrics fm = c.getFontMetrics(c.getFont());
    return (c.getHeight() >> 1) + (fm.getHeight() >> 1) - fm.getDescent();
  }
private static int getTextBaseLine(Component c)