/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Frame f = new Frame("Menu");
MenuBar mb = new MenuBar();
f.setMenuBar(mb);
Menu m1 = new Menu("文件");
Menu m2 = new Menu("编辑");
Menu m3 = new Menu("帮助");
mb.add(m1);
mb.add(m2);
mb.setHelpMenu(m3);
MenuItem m11 = new MenuItem("新建");
MenuItem m12 = new MenuItem("保存");
MenuItem m13 = new MenuItem("读取");
MenuItem m14 = new MenuItem("退出");