epubjs
Version:
Render ePub documents in the browser, across many devices
20 lines (19 loc) • 1.87 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Chapter 22. JavaBeans</title><link rel="stylesheet" href="core.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"/></head><body><div class="chapter" title="Chapter 22. JavaBeans"><div class="titlepage"><div><div><h1 class="title"><a id="learnjava3-CHP-22"/>Chapter 22. JavaBeans</h1></div></div></div><p>JavaBeans is a design pattern and a component architecture for Java.
It is a set of rules for writing highly reusable software elements that can
be understood by both developers and development tools. Writing components
to the JavaBeans specification means your code will be easier to read and
you won’t have to write as much custom code to glue components together. It
also allows you to leverage JavaBean-aware development environments that can
recognize the features of these components automatically and connect them in
a plug-and-play fashion to build parts of applications.</p><p>In this chapter, we’ll use the NetBeans IDE to create simple
applications by connecting Java beans visually. We will also create our own
reusable beans to add to the palette of components in the IDE. Although this
type of visual application design has never quite reached the level it was
expected to (we’ll talk about some of the reasons why later), it is still
very useful in GUI development. Perhaps more important though, the
fundamental JavaBeans patterns are firmly entrenched in all aspects of the
core Java APIs, so understanding them is important. We will cover all of
these aspects in this chapter, including hand-coding with Java beans and
some related APIs.</p></div></body></html>