protected void prepareForAddition(Object bean,BeanInfo beanInfo,Point location){
  try {
    setBeanProperties(bean,beanInfo,location);
    createPropertySheet(bean);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

protected void prepareForAddition ( Object bean , BeanInfo beanInfo , Point location ) { try { setBeanProperties ( bean , beanInfo , location ) ; createPropertySheet ( bean ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
this method is called to prepare the bean for addition to the beanbox . in the base class implementation , this method calls the abstract setbeanproperties method . it then displays the property sheet for the bean , thereby giving the user a chance to edit the bean ' s properties before the bean is added to the beanbox .
