文件名称:java9
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个创建二级菜单的程序。
其中菜单有“File”菜单项和“Format”菜单项。“File”菜单项中有子菜单“About”和“Exit”菜单:“Format”菜单项中有“Color”和“Font”子菜单项,“Color”子菜单项下有单选按钮“Blue”、“Red”、“Yellow”子菜单项,“Font”子菜单项下有复选框“Bold”和“Italic”子菜单项。
对“Abot”和“Exit”菜单项注册监听对象,当选择“About”或“Exit”菜单项时,弹出一个对话框或退出程序。对“Color”子菜单项下的菜单注册监听对象,当选择“Color”子菜单项下的单选按钮“Blue”、“Red”、“Yellow”菜单项时,给窗口中的字体设置颜色,颜色就是单选按钮中英文字母所代表的颜色;对Font子菜单项下的菜单注册监听对象,当选择Font子菜单项下的复选框“Bold”和“Italic”菜单项时,对窗口中的字体设置字体类型,字体类型为复选框中英文字母所代表的类型。
-A design to create the two level menu program.
"Menu in which File" menu item and the menu item "Format". The "File" menu item in the menu "About" and "Exit": "Format" menu in the menu item "Color" and "Font" menu item, "Color" sub menu item with radio button "Blue", "Red", "Yellow" menu item, "Font" sub menu item has a check box "Bold" and "Italic" submenu items.
The "Abot" and "Exit" menu item registered listener object, when choosing "About" or "Exit" menu item, a pop-up dialog box or exit the program. The "Color" sub menu item menu registered listener object, when choosing "Color" sub menu item under the radio button "Blue", "Red", "Yellow" menu item, set the color to the window of the font, color English letters is the radio button represented by the color of the Font menu item menu registered listener, when select the check box under the menu item "Bold Font" and "Italic" menu item, set the font type on the window of the font, font type to type check box in English letters
其中菜单有“File”菜单项和“Format”菜单项。“File”菜单项中有子菜单“About”和“Exit”菜单:“Format”菜单项中有“Color”和“Font”子菜单项,“Color”子菜单项下有单选按钮“Blue”、“Red”、“Yellow”子菜单项,“Font”子菜单项下有复选框“Bold”和“Italic”子菜单项。
对“Abot”和“Exit”菜单项注册监听对象,当选择“About”或“Exit”菜单项时,弹出一个对话框或退出程序。对“Color”子菜单项下的菜单注册监听对象,当选择“Color”子菜单项下的单选按钮“Blue”、“Red”、“Yellow”菜单项时,给窗口中的字体设置颜色,颜色就是单选按钮中英文字母所代表的颜色;对Font子菜单项下的菜单注册监听对象,当选择Font子菜单项下的复选框“Bold”和“Italic”菜单项时,对窗口中的字体设置字体类型,字体类型为复选框中英文字母所代表的类型。
-A design to create the two level menu program.
"Menu in which File" menu item and the menu item "Format". The "File" menu item in the menu "About" and "Exit": "Format" menu in the menu item "Color" and "Font" menu item, "Color" sub menu item with radio button "Blue", "Red", "Yellow" menu item, "Font" sub menu item has a check box "Bold" and "Italic" submenu items.
The "Abot" and "Exit" menu item registered listener object, when choosing "About" or "Exit" menu item, a pop-up dialog box or exit the program. The "Color" sub menu item menu registered listener object, when choosing "Color" sub menu item under the radio button "Blue", "Red", "Yellow" menu item, set the color to the window of the font, color English letters is the radio button represented by the color of the Font menu item menu registered listener, when select the check box under the menu item "Bold Font" and "Italic" menu item, set the font type on the window of the font, font type to type check box in English letters
(系统自动生成,下载前可以参看下载内容)
下载文件列表
java9.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.