otherHeight += tmp.height;
    public Dimension preferredLayoutSize(Container parent)    {      Dimension d = new Dimension();      if (editor != null)        {	  Dimension tmp = editor.getPreferredSize();	  d.width += Math.max(tmp.width, 40);	  d.height = tmp.height;        }      int nextWidth = 0;      int previousWidth = 0;      int otherHeight = 0;      if (next != null)        {	  Dimension tmp = next.getPreferredSize();	  nextWidth = tmp.width;	  otherHeight += tmp.height;        }      if (previous != null)        {	  Dimension tmp = previous.getPreferredSize();	  previousWidth = tmp.width;	  otherHeight += tmp.height;        }      d.height = Math.max(d.height, otherHeight);      d.width += Math.max(nextWidth, previousWidth);      return d;    }