基于JAVA的虚拟种植程序设计与实现  被引量:1

Design and Implementation of Virtual Planting Program Based on JAVA

在线阅读下载全文

作  者:许晶[1] XU Jing(Tianjin Modem Vocational Technology College, Tianjin 300350, Chin)

机构地区:[1]天津现代职业技术学院,天津300350

出  处:《天津科技》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.

关 键 词:JAVA 图标按钮 JButton 方法 组件 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象