/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to render the window * decorations. */ private void installLayout(JRootPane root) { if (layoutManager == null) { layoutManager = createLayoutManager(); } savedOldLayout = root.getLayout(); root.setLayout(layoutManager); }
/** Uninstalls the previously installed <code>LayoutManager</code>. */ private void uninstallLayout(JRootPane root) { if (savedOldLayout != null) { root.setLayout(savedOldLayout); savedOldLayout = null; } }