Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

JavaBeans 101, Part III

 
 
Online Training Index

101, Part III:

Introduction | Page 1 | Page 2 | Page 3 | Page 4



Advanced Bean programming is about customization. Customization entails providing a basic behavior for a Bean and allow its specific behavior to be controlled by end users who interact with the Bean, typically through application builder tools. A Bean can be customized for a specific application either

  • Programmatically, through Java code.
  • Visually, through GUI interfaces hosted by application builder tools.

In the latter case, you can provide customized dialog boxes and editing tools with sophisticated controls. Such customization tools are packaged as part of the Bean.

The Bean thus becomes a set of classes, including the Bean proper, as well as other classes that provide a clean, simple, and intuitive interface through which end users can specify precise Bean behavior in applications. The examples in this segment give you a solid understanding of Beans. Once you've mastered these concepts, you are well on your way to building reusable software components that others will want to use in their programs.

Table of Contents

  • Converting Existing Code to Beans
  • Bound Properties
  • Events, Reflection, and Introspection
  • Customizing Beans for Builder Tools.

In this concluding segment to the JavaBeans 101 Tutorial, you'll do more "hands-on examples, including practicing concepts you've already learned and writing more advanced Beans. You'll see how to convert old applets and JDK software, version 1.0 programs to Beans. You will learn about the AWT delegation event model; how Beans can notify other objects about change events; and see how reflection and introspection let you customize the behavior and presentation of your Beans.

Introduction | Page 1 | Page 2 | Page 3 | Page 4

Coffecup Logo


Have a question about programming? Use Java Online Support.

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.