I think Thomas Gentsch wrote:
> 
> As shown in the pumps example a Java bean has to contain something like:
> 
> public void setVal(int v)
> {
>   int tmp = val;
>   val = v;
>   pcs.firePropertyChange("Val", tmp, v);
> }
> 
> Now if I have dozens of classes with again dozens of members I have to
> code all this in every single set() method.
> Is there any better way?

No, but there's a harder way: don't use PropertyChangeSupport! :)

Seriously, though: a good editor or IDE can do this kind of thing for
you automatically. Or you can write a program to generate them for
you. 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to