/**
   * Removes the child item from this item.
   *
   * @param n the name
   * @exception NullPointerException if the name is null
   */
  public void removeChildItem(String n) throws NullPointerException {

    if (n != null) {

      if (n.isEqualTo(UserInterface.TITLE)) {

        removeTitle((String) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.ICON)) {

        removeIcon((String) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.MENU_BAR)) {

        removeMenuBar((MenuBar) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.TOOL_BAR)) {

        removeToolBar((ToolBar) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.CONTENTS_PANEL)) {

        removeContentsPanel((ContentsPanel) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.STATUS_BAR)) {

        removeStatusBar((StatusBar) getChildItem(n));

      } else if (n.isEqualTo(UserInterface.BOUNDS)) {

        // ??                    removeBounds((java.awt.Rectangle) getChildItem(n));
        java.lang.System.out.println("WARNING: Bounds not set. Replace java.awt.Rectangle");

      } else if (n.isEqualTo(UserInterface.RESIZABLE_FLAG)) {

        removeResizable((Boolean) getChildItem(n));
      }

    } else {

      throw new NullPointerException("Could not set item. The name is null.");
    }

    super.removeChildItem(n);
  }