if (!isDisplayable ())
if (isDisplayable ())
  public void setUndecorated (boolean undecorated)  {    if (!isDisplayable ())      throw new IllegalComponentStateException ();    this.undecorated = undecorated;  }