[thelist] Java classes and events
Kevin W
null at tsn.cc
Thu Jan 9 20:23:01 CST 2003
On Thursday, David Treves wrote:
> Use Observer/Observable design. You may read about it in JavaDocs. The
> basic idea is that one object is the observable and it notifies all
> observers when some event occurs.
OK, Thanks. I have one question.
Do I make the Observable a subclass of my Board class (which is a subclass
of JPanel)? If so, then I just have to move my Board constructor to the
Observable class and refer to the Observable class instead of Board, yes?
--
Kevin W :-)
More information about the thelist
mailing list