protected void addImpl(final Component comp, final Object constraints, final int index) { if (isRootPaneCheckingEnabled()) { getContentPane().add(comp, constraints, index); return; } super.addImpl(comp, constraints, index); }
/** * Set rootPane property. * * @param root */ protected void setRootPane(final JRootPane root) { if (rootPane != null) { remove(rootPane); } rootPane = root; if (root != null) { super.addImpl(root, null, 0); } }