invalidate(); layout();
  protected void addImpl(Component comp, Object constraints, int index)  {    int left = 0;    int right = 1;    int div = 2;    int place;    if (constraints == null)      {	if (leftComponent == null)	  constraints = LEFT;	else if (rightComponent == null)	  constraints = RIGHT;      }    if (constraints instanceof String)      {	String placement = (String) constraints;	if (placement.equals(BOTTOM) || placement.equals(RIGHT))	  {	    if (rightComponent != null)		remove(rightComponent);	    rightComponent = comp;	  }	else if (placement.equals(LEFT) || placement.equals(TOP))	  {	    if (leftComponent != null)	      remove(leftComponent);	    leftComponent = comp;	  }	else if (placement.equals(DIVIDER))	  constraints = null;	else          throw new             IllegalArgumentException("Constraints is not a known identifier.");	super.addImpl(comp, constraints, index);      }		invalidate();    layout();  }