/** * Invoked when a component has been added to the container. Basically if you add anything which is not divider, a * divider will automatically added before or after the component. * * @param e ContainerEvent */ public void componentAdded(ContainerEvent e) { e.getChild().addComponentListener(this); if (!(e.getChild() instanceof JideSplitPaneDivider)) { addExtraDividers(); if (isOneTouchExpandable()) { e.getChild().setMinimumSize(new Dimension(0, 0)); } } setDividersVisible(); resetToPreferredSizes(); }