检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:许晶[1] XU Jing(Tianjin Modem Vocational Technology College, Tianjin 300350, Chin)
出 处:《天津科技》2017年第3期54-56,共3页Tianjin Science & Technology
摘 要:人物角色扮演版电脑游戏中包含一类游戏,其植物的播种、生长、开花和结果都可以由游戏主角来控制,而各类过程也可以用图片来表示相应的效果,这样的虚拟植物种植游戏程序可以由JAVA开发设计。JAVA的Swing组件中的JButton可以实现图标按钮的构造方法。在按钮的单击事件中改变Crop对象的图片就可以实现农作物状态的改变。Swing组件不能直接添加到顶层容器中,只能添加到一个与Swing顶层容器相关联的内容面板容器中。在虚拟种植程序中,Swing组件添加到背景窗体面板之上。There is a role playing game version of computer games, in which planting, growth, flowering and fruit bear- ing can be controlled by protagonist of the game, and all kinds of processes can also be used to represent the corresponding picture effect. Such virtual plant planting game program can be developed by using JAVA. JAVA Swing components in the JButton can be achieved by the construction of the icon button. Changes in the state of the crop can be achieved by changing the image of the Crop object in the event of a button click. The Swing component cannot be added directly to the top-level container and can only be added to a content panel container associated with the Swing top-level container. In the virtual cropping program, the Swing component can be added to the background panel.
分 类 号:TP31[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.220.98.157