/**
   * Removes the status bar.
   *
   * @param s the status bar
   * @exception NullPointerException if the java frame is null
   * @exception NullPointerException if the status bar is null
   * @exception NullPointerException if the content pane is null
   */
  public void removeStatusBar(StatusBar s) throws NullPointerException {

    javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject();

    if (f != null) {

      if (s != null) {

        java.awt.Container cp = f.getContentPane();

        if (cp != null) {

          cp.remove((javax.swing.JLabel) s.getJavaObject());

        } else {

          throw new NullPointerException("Could not set status bar. The content pane is null.");
        }

      } else {

        throw new NullPointerException("Could not set status bar. The status bar is null.");
      }

    } else {

      throw new NullPointerException("Could not set status bar. The java frame is null.");
    }
  }
  /**
   * Removes the tool bar.
   *
   * @param t the tool bar
   * @exception NullPointerException if the java frame is null
   * @exception NullPointerException if the tool bar is null
   * @exception NullPointerException if the content pane is null
   */
  public void removeToolBar(ToolBar t) throws NullPointerException {

    javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject();

    if (f != null) {

      if (t != null) {

        java.awt.Container cp = f.getContentPane();

        if (cp != null) {

          cp.remove((javax.swing.JToolBar) t.getJavaObject());

        } else {

          throw new NullPointerException("Could not set tool bar. The content pane is null.");
        }

      } else {

        throw new NullPointerException("Could not set tool bar. The tool bar is null.");
      }

    } else {

      throw new NullPointerException("Could not set tool bar. The java frame is null.");
    }
  }
  /**
   * Removes the contents panel.
   *
   * @param c the contents panel
   * @exception NullPointerException if the java frame is null
   * @exception NullPointerException if the contents panel is null
   * @exception NullPointerException if the content pane is null
   */
  public void removeContentsPanel(ContentsPanel c) throws NullPointerException {

    javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject();

    if (f != null) {

      if (c != null) {

        java.awt.Container cp = f.getContentPane();

        if (cp != null) {

          cp.remove((javax.swing.JPanel) c.getJavaObject());

        } else {

          throw new NullPointerException("Could not set contents panel. The content pane is null.");
        }

      } else {

        throw new NullPointerException("Could not set contents panel. The contents panel is null.");
      }

    } else {

      throw new NullPointerException("Could not set contents panel. The java frame is null.");
    }
  }
  /**
   * Creates an encapsulated java swing window/dialog/frame/internal frame/tab page.
   *
   * @return the encapsulated java swing window/dialog/frame/internal frame/tab page
   */
  public java.lang.Object createJavaObject() {

    java.awt.Container c = null;
    /*??
            Integer i = (Integer) getChildItem(UserInterface.USER_INTERFACE_MODE);

            if (i != null) {

                if (i.isEqualTo(UserInterface.APPLET_MODE)) {

                    c = new javax.swing.JApplet();

                } else if (i.isEqualTo(UserInterface.WINDOW_MODE)) {

                    c = new javax.swing.JWindow();

                } else if (i.isEqualTo(UserInterface.MODAL_DIALOG_MODE)) {

                    c = new javax.swing.JDialog();

                } else if (i.isEqualTo(UserInterface.MODELESS_DIALOG_MODE)) {

                    c = new javax.swing.JDialog();

                } else if (i.isEqualTo(UserInterface.FRAME_MODE)) {
    */

    c = new javax.swing.JFrame();

    if (c != null) {

      c.setSize(600, 400);

    } else {

      throw new NullPointerException(
          "Could not create encapsulated java swing frame. The encapsulated java swing frame is null.");
    }

    /*??
                } else if (i.isEqualTo(UserInterface.INTERNAL_FRAME_MODE)) {

                    c = new javax.swing.JInternalFrame();

                } else if (i.isEqualTo(UserInterface.TAB_PAGE_MODE)) {

                    c = new javax.swing.JPanel();
                }

            } else {

                throw new NullPointerException("Could not create frame. The user interface mode is null.");
            }
    */

    return c;
  }