Esempio n. 1
0
 public void clearSpecificTaskPane() {
   if (currentSpecificTaskPane != null) {
     taskPaneContainer.remove(currentSpecificTaskPane);
   }
   currentSpecificTaskPane = null;
   // this.mainTaskPane.setExpanded(true);
 }
Esempio n. 2
0
  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);
  }