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