/** {@inheritDoc} */ @Override public void installUI(JComponent c) { super.installUI(c); taskPane = (JXTaskPaneContainer) c; installDefaults(); LayoutManager manager = taskPane.getLayout(); if (manager == null || manager instanceof UIResource) { taskPane.setLayout(createDefaultLayout()); } }
/** {@inheritDoc} */ @Override public void uninstallUI(JComponent c) { uninstallDefaults(); super.uninstallUI(c); }