Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 15.  JavaBeans

In this chapter, you learned about JavaBeans and how they can be used to improve your programming. You learned how to create your own JavaBeans complete with events and custom methods. In addition, you learned how to create bound and constrained variables.

Next, we examined the anatomy of a JavaBean, and we learned what makes it different from an ordinary Java class. We then created a fairly simple Bean to illustrate these principles. We deployed the Bean using the BeanBox application that Sun distributes to assist in the verification that the Bean is correctly created.

Following that, we put our Bean into the Forte IDE and placed it in the Swing(Other) palette. Finally, we created a simple application visually to see how our code was integrated into a Forte-created application.

Finally, we created a JavaBean that fires property changes to another Bean that is a listener.


    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: