To create a File menu with an Exit menu item, add the code in Listing 11 to Gwitter.groovy
为了创建包含Exit菜单项的File 菜单,在Gwitter.groovy 中添加清单11 中的代码
For example, in a well-designed GUI application, the code that adds an Exit menu item would run on a Windows PC but not a Mac.
例如,在一个设计良好的GUI应用程序中,添加一个exit菜单项的代码可以在WindowsPC上运行,但它不能在mac机上运行。
For example, in a well-designed GUI application, the code that adds an Exit menu item would run on a Windows PC but not a Mac.
例如,在一个设计良好的GUI应用程序中,添加一个exit菜单项的代码可以在WindowsPC上运行,但它不能在mac机上运行。
应用推荐