1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
9
<title>About Beans Binding in Java Desktop Applications</title>
10
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
13
<h2>About Beans Binding in Java Desktop Applications</h2>
14
<p><small><a href="#seealso">See Also</a></small></p>
15
<p>The IDE supports the Beans Binding specification (JSR 295),
16
which enables you to synchronize the values of properties of different beans.
17
This feature is useful in desktop applications for things such as the following:</p>
19
<li>Creating database applications.</li>
20
<li>Incorporating web services into applications.</li>
21
<li>Creating dynamic interaction between visual components.</li>
23
<p>To take full advantage of the IDE's beans binding support, use the
24
IDE's <a href="gui_about.html">GUI Builder</a>.
25
You can open the GUI Builder in either of the
28
<li>Choose File > New Project, select the Java category, and
29
create a project with the Java Desktop Application template.</li>
30
<li>In another type of Java project, choose File > New File and
31
select any of the templates in the Swing GUI Forms category.</li>
33
<p>When the GUI Builder is open, you can generate bindings for
34
components by using the
35
<a href="csh/gui_bind_dialog.html">Bind dialog box</a>. The Bind dialog box
36
enables you to designate a source for the binding and generate
37
other necessary code for the binding, such as converters or validators.
38
Open the Bind dialog box by right-clicking the component that you want
39
to be the target of the binding and choosing the appropriate
40
property from the Bind submenu.</p>
43
<p>When using the Bind dialog box, the IDE generates binding code that
44
contains Expression Language syntax. This syntax makes it
45
easy to bind simple properties, nested properties, and expressions.</p>
47
<li>As of JDK 6, the Beans Binding library is not a part of the JDK.
48
Applications that use beans binding need to be packaged with
49
the Beans Binding JAR file. When you create bindings using the
50
IDE's Bind dialog box, the IDE adds the Beans Binding JAR file to your
51
project automatically. When you build your project, you can find the
52
JAR file in the project's <tt>dist/lib</tt> folder.</li>
55
<dt><a name="seealso">See Also</a></dt>
56
<dd><a href="gui_bind_working.html">Working With Beans Binding</a></dd>
57
<dd><a href="gui_bind_db_working.html">Working With Desktop Database Applications</a></dd>
58
<dd><a href="gui_creatingforms.html">Creating a New Form</a></dd>
59
<dd><a href="gui_addcomponent.html">Adding a Component to a Form</a></dd>
61
<hr><small><a href="../credits.html">Legal Notices</a></small>
62
<table border="0" cellpadding="50">