if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else
  public  void setLayout(LayoutManager manager)  {    super.setLayout(manager);  }