不要用这个方法,它根本就是个假方法: /** * 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."); }
/**
* 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.");
}