Int this block of code, when you add support to a property for a
vetoable change, you don't have to include the index of the array like
you do for the indexed property change.... why is that? How do the
beans on the vcs list know which index in the string array we are
talking about if we don't send them the index?
public void setLines( int index, String line )
throws PropertyVetoException
{
String old = this.lines[index];
this.vcs.fireVetoableChange( "lines", old, line ); //no
index???
this.lines[index] = line;
this.pcs.fireIndexedPropertyChange( "lines", index, old,
line );
}
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---