~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to java/helpset/javahelp/org/netbeans/modules/java/helpset/docs/gui/gui_bind_about.html

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!--       
 
3
 *     Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
 
4
 *     Use is subject to license terms.
 
5
 *
 
6
-->
 
7
<html>
 
8
    <head>
 
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">
 
11
    </head>
 
12
    <body>
 
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> 
 
18
        <ul>
 
19
            <li>Creating database applications.</li>
 
20
            <li>Incorporating web services into applications.</li>
 
21
            <li>Creating dynamic interaction between visual components.</li>
 
22
        </ul>
 
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 
 
26
        following ways:</p>
 
27
        <ul>
 
28
            <li>Choose File &gt; 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 &gt; New File and 
 
31
            select any of the templates in the Swing GUI Forms category.</li>
 
32
        </ul>
 
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>
 
41
 
 
42
 
 
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>
 
46
        <ul class="note">
 
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>
 
53
        </ul>
 
54
        <dl>
 
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>
 
60
        </dl>
 
61
        <hr><small><a href="../credits.html">Legal Notices</a></small>
 
62
        <table border="0" cellpadding="50">
 
63
            <tr>
 
64
                <td>&nbsp;</td>
 
65
            </tr>
 
66
        </table>
 
67
    </body>
 
68
</html>