protected void paintHorizontal(Graphics g, Dimension size) {
    for (int i = 0; i < myLine; i++) {
      g.drawLine(0, i, size.width, i);
    }
  }
protected void paintHorizontal(Graphics g, Dimension size)