/** * Removes the pane, specified by <code>index</code>, from this container. * * @param pane the pane to be removed. */ public void removePane(Component pane) { removePane(indexOfPane(pane)); }
/** * Replaces the pane at the position specified by index. * * @param pane new pane * @param constraint an object expressing layout constraints for this component * @param index position */ public void setPaneAt(Component pane, Object constraint, int index) { double[] proportions = _proportions; _proportions = null; // Just turn them off temporarily removePane(index); insertPane(pane, constraint, index); _proportions = proportions; validate(); }