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