예제 #1
0
  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);
  }
예제 #2
0
  /**
   * 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);
    }
  }