public void clearSpecificTaskPane() { if (currentSpecificTaskPane != null) { taskPaneContainer.remove(currentSpecificTaskPane); } currentSpecificTaskPane = null; // this.mainTaskPane.setExpanded(true); }
public void setSpecificTaskPane(JPanel contents, String title, Icon icon) { if (currentSpecificTaskPane != null) { taskPaneContainer.remove(currentSpecificTaskPane); } currentSpecificTaskPane = new JXTaskPane(); currentSpecificTaskPane.setLayout(new BorderLayout()); currentSpecificTaskPane.setTitle(title); currentSpecificTaskPane.setIcon(icon); // contents.setOpaque(false); SwingUtilities.updateComponentTreeUI(contents); // currentSpecificTaskPane.setOpaque(false); currentSpecificTaskPane.add(contents, BorderLayout.CENTER); // this.mainTaskPane.setExpanded(false); taskPaneContainer.add(currentSpecificTaskPane); }