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. ContentsContents Introduction: Beans Binding in NetBeans IDE 6.0 Binding Properties to Other Properties Advanced Bind
2、ing Properties Binding Data to Components Special Binding Properties 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) Introdu
3、ction: 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
4、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.