- 4
- 0
- 约2.22万字
- 约 23页
- 2017-03-31 发布于湖北
- 举报
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
您可能关注的文档
- 四川省资阳市2016届高三下学期高考模拟考试物理试题解读.doc
- 世界各地婚俗详解.ppt
- 塑料、纤维和橡胶解读.ppt
- 世界地理—欧洲东部、俄罗斯详解.ppt
- 四个能力建设相关表本册解读.doc
- 四号炉工业水系统(冯志刚)解读.ppt
- 四级翻译练习解读.ppt
- 世界各大即时通讯工具详解.ppt
- 四联移民安置点景观设计任务书解读.doc
- 四六级翻译练习题解读.doc
- (2026春新版)部编版八年级语文下册《第一单元》PPT课件.pptx
- 2018电力监控系统网络安全监测装置技术规范.docx
- 2022电力监控系统安全防护方案审核要点.docx
- 2014电力电缆光伏系统EN 50618欧标.docx
- (2026春新版)人教版二年级数学下册《第三单元 万以内数的认识》教案.docx
- (2026春新版)人教版二年级数学下册《第四单元 万以内的加法和减法》教案.docx
- (2026春新版)人教版二年级数学下册《综合与实践 时间在哪里》教案.docx
- (2026春新版)苏教版二年级数学下册《综合与实践 时间有多长》教案 .pdf
- (2026春新版)部编版三年级语文下册第3单元(教案).docx
- (2026春新版)部编版三年级语文下册第8单元(教案).docx
最近下载
- Dräger德图呼吸机Oxylog 3000 plus用户手册.pdf
- 零售业销售数据分析方法与应用.docx VIP
- 会计信息系统:财务篇 教案全套 宋红尔 第1--9章 系统管理---UFO报表.docx
- 个体化音乐干预减轻腹腔镜手术病人术前焦虑的研究.pdf VIP
- 精品解析:黑龙江省哈尔滨市德强高级中学2023-2024学年高一下学期开学验收考试数学试题(解析版).docx VIP
- GB50108–2024《地下工程防水技术规范》.pptx VIP
- 2023年上海初三语文一模试题说明文阅读汇编含答案.doc VIP
- 2025年福建省中考物理试卷(附答案解析).docx VIP
- Specialized English for Medical Imaging Technology医学影像 技术专业英语.pptx VIP
- 改建工程路面结构设计毕业设计.doc VIP
原创力文档

文档评论(0)