Java Beans Question:

Download Job Interview Questions and Answers PDF

How to implement a bound property in your bean application?

Java Beans Interview Question
Java Beans Interview Question

Answer:

To implement a bound property in the application, follow these steps:

► Import the java.beans package. This gives you access to the PropertyChangeSupport class.
► Instantiate a PropertyChangeSupport object. This object maintains the property change listener list and fires property change events. You can also make your class a PropertyChangeSupport subclass.
► Implement methods to maintain the property change listener list. Since a PropertyChangeSupport subclass implements these methods, you merely wrap calls to the property-change support object's methods.
► Modify a property's set method to fire a property change event when the property is changed.

Download Java Beans Interview Questions And Answers PDF

Previous QuestionNext Question
How and when will the JavaBeans Migration Assistant to ActiveX be available?What is the relationship between Enterprise JavaBeans and JavaBeans?