Home : Course Map : Chapter 12 : Java : Supplements :
Java Beans
JavaTech
Course Map
Chapter 12

Printing
  Demo 1
Cursor Icons
  Demo 2
MouseButtons
  Demo 3
PopupMenu
  Demo 4
Keystrokes
  Demo 5
Audio
  Demo 6
Timing & Speed
  Demo 7
Toolkit
  Demo 8
AppletContext
  Demo 9
Exercises

    Supplements
Java Beans
More APIs
Java & Browsers
  Demo 1
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New
JavaBeans take the component concept of object oriented programming to the next level. A JavaBean system allows one to build a program completely from a drag-and-drop menu without writing any code directly.

JavaBeans are in fact just Java objects but ones that obey a set of design rules that allow visual application builders to interogate them to determine their properties and to modify them.

JavaBeans take advantage of

  • Design patterns - such as factory methods and accessing properties with well defined "getter" and "setter" methods:

    ...
    private int A, B;

    public void getA(){ return A;}
    public void getB(){ return B;}
    public int setA(int a){ A = a;}
    public int setB(int b){ B = b;}


  • Reflection - allows the classes to be interogated to find their fields, methods, etc.

  • Object serialization - objects can be taken apart and saved to files and then rebuilt later just as they were.

  • Scalability - beans can be constructed out of other simpler beans, e.g. a bean can be as simple as a AWT label or as elaborate as a spreadsheet.

JavaBeans are beyond the range of this course. See the following sites for more information:

References & Web Resources

 

 

 

 

 

              Tech
Tech APIs
Exercises

           Physics
Math/Science APIs
JAIDA Program
  Demo 1
Demo 1 Discussion
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.