本帖最后由 yuanzhuohang 于 2010-06-12 18:32:45 编辑

解决方案 »

  1.   

    不要用这个方法,它根本就是个假方法:
        /**
         * Sets the help menu that appears when the user selects the
         * "help" option in the menu bar. This method is not yet implemented
         * and will throw an exception.
         *
         * @param menu the JMenu that delivers help to the user
         */
        public void setHelpMenu(JMenu menu) {
            throw new Error("setHelpMenu() not yet implemented.");
        }
      

  2.   

    不是吧?没想到编写Java API的也有这么无聊的时候。
      

  3.   

    我也是刚知道,我还在想,JMenuBar有helpMenu这个属性,当年怎么没见到过?点开一看.............................................