{ if (isRootPaneCheckingEnabled()) throw new Error("Do not add directly to JDialog." + " Use getContentPane().add instead."); getContentPane().add(comp, constraints, index); }
super.addImpl(comp, constraints, index);
    protected  void addImpl(Component comp, Object constraints, int index)  {    // If we're adding in the initialization stage use super.add.    // Otherwise pass the add onto the content pane.    if (!initStageDone)    super.addImpl(comp, constraints, index);    else      {        if (isRootPaneCheckingEnabled())          throw new Error("Do not add directly to JDialog."                          + " Use getContentPane().add instead.");        getContentPane().add(comp, constraints, index);      }  }