资 源 简 介
//构造具有指定的标签的菜单
files = new Menu("文件(F)")
compile = new Menu("编辑(E)")
see = new Menu("查看(V)")
format = new Menu("格式(O)")
font = new Menu("字体和颜色(F)...") //在格式菜单下再添加一个字体及颜色的菜单
help = new Menu("帮助(H)")
//构造具有指定的标签的菜单项
news = new MenuItem("新建(N)" + " " + "Ctrl+N")
open = new MenuItem("打开(O)..." + " " + "Ctrl+O")
save = new MenuItem("保存(S)" + " " + "Ctrl+S")
other = new MenuItem("另存为(A)...")
page = new MenuItem("页面设置(U)...")
mim = new MenuItem("打印(P)..." + " " + "Ctrl+P")
quit = new MenuItem("退出(X)")