- 1、本文档共23页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
外文翻译6 在桌面应用程序中Bean和数据的绑定
Binding Beans and Data in a Desktop Application
This guide is an introduction to the support in NetBeans IDE 6.0 for beans binding and data binding in Java desktop applications.
Software and Files Needed for the Tutorial
For this tutorial you need to have the following software installed on your computer:
NetBeans IDE 6.0 (download).
Java Standard Development Kit (JDK) version 5.0 or 6.0 (download)
Introduction: Beans Binding in NetBeans IDE 6.0
Until the release of the beans binding library, it was somewhat cumbersome to connect UI components to databases or to keep values of component properties in sync. For example, displaying data from a standard database in a JTable required the manual creation of utility classes to handle the connection between the database and the JTable. And keeping values of different bean properties in sync (such as the value of a JTextField with the rendering of a visual bean) required hand-coding of listeners and event handlers.
The beans binding library simplifies and standardizes all of this. You can merely write a few lines of code to establish which properties of which components need to be kept in sync, and the beans binding library handles the rest. In the NetBeans IDE, beans binding features are integrated in the GUI Builder, so you can quickly get the behavior of your application coded soon after you have established the visual design.
This guide is an overview of the main aspects of beans binding in the IDE. For a concrete example of many of these features, you can try the Building a Java Desktop Database Application tutorial.
Binding Properties to Other Properties
At its most basic, beans binding is a way to connect bean properties without using event listening and handling code.
To illustrate the concept of beans binding and how the IDE supports it, we will do a simple example where a user can adjust a slider to change a numerical value in a text field.
To set up the example:
In the IDE, choose, File New Project.
Select t
您可能关注的文档
- 复制只能追赶,创新才能超越.ppt
- 复句类型ppt.ppt
- 复习:第一二章运动与能量.ppt
- 复合场中运动知识点及典型习题.doc
- 复合材料_第三讲界面.ppt
- 复合材料的强韧化.ppt
- 复合树脂直接粘接牙体修复.docx
- 复合精炼剂-多媒体.ppt
- 复旦大学 化工原理 第二章 流体输送机械.ppt
- 复杂先心病超声诊断.ppt
- 2024年12月广东江门市台山出入境边防检查站编制外人员公开招聘1人笔试历年典型考题(历年真题考点)解题思路附带答案详解.doc
- 2025年02月2024贵州毕节市农业农村局人才“蓄水池”第二批岗位引进人才笔试历年典型考题(历年真题考点)解题思路附带答案详解.doc
- 2025年02月山西阳曲县统计局公开招聘劳动力调查人员2人笔试历年典型考题(历年真题考点)解题思路附带答案详解.doc
- 2025年02月宝鸡市事业单位(978人)笔试历年典型考题(历年真题考点)解题思路附带答案详解.doc
- 2024年12月中国合格评定国家认可中心第二批公开招聘笔试历年典型考题(历年真题考点)解题思路附带答案详解.doc
- 2025中国建材集团有限公司所属单位岗位合集(8月)笔试参考题库附带答案详解.doc
- 2025届浙江宁波市市域铁路投资发展有限公司校园招聘笔试参考题库附带答案详解.doc
- 2025中国通号部分二级企业副总经理岗位招聘46人笔试参考题库附带答案详解.doc
- 2025中国铝业股份有限公司招聘11人笔试参考题库附带答案详解.doc
- 2025届浪潮集团校园招聘期待你加入笔试参考题库附带答案详解.doc
文档评论(0)