- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
外文翻译6 在桌面应用程序中Bean和数据的绑定概要1
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 VIP
- 银行业金融机构安全评估标准.pdf VIP
- T∕CSPSTC 124-2023 钢箱梁步履式顶推施工技术规程.pdf
- 设计方案 -浙东运河文化园(博物馆)设计方案.docx
- 铣工技能训练第五版完整版全套PPT电子课件教案.pptx VIP
- 《玩偶之家》课件.pptx VIP
- DB63_T 2052.5-2022农村公路勘察设计规范+第+5+部分:桥梁涵洞.docx VIP
- 无人机行业政策监管分析报告:2025年建筑检测应用市场增长预测.docx
- 江苏执业药师继续教育《痴呆症的诊治》习题答案.docx VIP
- 2024红十字救护员理论考核试题及答案.pdf VIP
文档评论(0)