sizes[1] = available - sizes[0] - sizes[1];
sizes[1] = available - sizes[0] - sizes[2];
    public void layoutContainer(Container container)    {      if (container instanceof JSplitPane)        {	  JSplitPane split = (JSplitPane) container;	  distributeExtraSpace();	  Insets insets = split.getInsets();	  Dimension dims = split.getSize();          int loc = getInitialLocation(insets);          int available = getAvailableSize(dims, insets);          sizes[0] = getDividerLocation(split) - loc;          sizes[1] = available - sizes[0] - sizes[1];          // The size of the divider won't change.          // Layout component#1.          setComponentToSize(components[0], sizes[0], loc, insets, dims);          // Layout divider.          loc += sizes[0];          setComponentToSize(components[2], sizes[2], loc, insets, dims);          // Layout component#2.           loc += sizes[2];          setComponentToSize(components[1], sizes[1], loc, insets, dims);        }    }