if (a != TOP && a != CENTER && a != BOTTOM) throw new IllegalArgumentException("Invalid alignment.");
  public void setVerticalAlignment(int a)  {    if (verticalAlignment == a)      return;        int old = verticalAlignment;    verticalAlignment = a;        firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, old, a);        revalidate();        repaint();      }