J
jb
Hi!
I've been writing a program that operates on small hand-made database.
And I would like other objects to track changes in this database
possibly in the swing way i.e:
class DataBase {
public void addActionListner(ActionListener foo){
//* What to put here *//
}
public void changePartOfDatabase{
/*....*/
fireActionPerformed();
}
}
Other objects interested in tracking changes would just add new
Listener.
I suspect that there is a class from I could inherit such functions -
but I hadn't been able to find it. ;-(. If there is please drop me some
keywords so I could google for it, if there is not please tell me how
to write such a thing by myself.
I've been writing a program that operates on small hand-made database.
And I would like other objects to track changes in this database
possibly in the swing way i.e:
class DataBase {
public void addActionListner(ActionListener foo){
//* What to put here *//
}
public void changePartOfDatabase{
/*....*/
fireActionPerformed();
}
}
Other objects interested in tracking changes would just add new
Listener.
I suspect that there is a class from I could inherit such functions -
but I hadn't been able to find it. ;-(. If there is please drop me some
keywords so I could google for it, if there is not please tell me how
to write such a thing by myself.