Chapter 15

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Appendix C.  Answers to Review Questions


A1:

A JavaBean provides a get and a set method for all its publicly exposed properties. If a property is read-only, the set method is omitted. Normally, JavaBeans also have a visual representation both on the toolbar and on the screen at runtime.

A2:

The SimpleBeanInfo class provides a getIcon() method that can be called by GUI tool to obtain an icon for its toolbar.

A3:

A bound property is one that can accept a listener who will be notified when the property value changes.

A4:

A constrained property is one that can also accept a listener. In addition, it provides the listener with a veto over the changes.


       
    Top
     



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

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net