免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1143 | 回复: 2
打印 上一主题 下一主题

不错的学习材料 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-18 13:07 |只看该作者 |倒序浏览
Introduction to Java Interface Event-Handling
Java is an event-driven language. This means that program flow usually varies dependent upon what actions a user performs, and differs from traditional procedural-based languages where program execution was very linear. Here's what you need to know to make your Java programs respond to events such as the user moving the mouse or clicking a button.  

by David M. Williams October 21, 2002




  

When you program with event-driven languages, users typically see an interface containing controls, buttons, menus and other graphical elements. After displaying the interface, the program waits. What happens next depends almost entirely on the user.
Usually, that means users interact with the controls to make something happen. For example, a user may click a button, or choose a menu item. Whatever users choose to do, they will initiate an event, which in turn, fires code in an event-handler, which is a part of the program coded respond to the specific event. After handling the event, the program waits for the user to do something else.

With that in mind, event-driven interface programming becomes a matter of setting up an interface that responds to the user's actions. The program becomes a collection of bursts of code that are modular in fashion and tied specifically to possible actions.

In contrast, linear-based procedural programs provide limited user options. The program retains the bulk of the control.

Page 1 of 4

论坛徽章:
0
2 [报告]
发表于 2005-03-19 20:05 |只看该作者

不错的学习材料

本人英语不是很好,先翻译:
java是一门事件驱动语言,这个意味着程序流通常随着用户的执行而改变,不同与传统过程语言程序的执行是线性的。你所要知道是使你的java程序相应事件比如用户移动鼠标和点击键盘。。。。。
总之是所java是事件驱动编程,我以为有什么好java学习资料呢?

论坛徽章:
0
3 [报告]
发表于 2005-03-20 07:10 |只看该作者

不错的学习材料

其实我是初学者, 所以水平在起跑点上. 请见谅.只是我是用英文学习的. 本来以为回到中文会好懂一点.  (现在发现中文材料象日文字啦! 看起来很费劲. )
中文翻译怪了点.  类, 超累, 对象....接口...?????
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP