{ if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JWindow directly. 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 use add() on JWindow directly. Use "                          + "getContentPane().add() instead");        getContentPane().add(comp, constraints, index);      }  }