FileDocCategorySizeDatePackage
ObservDemo.javaAPI DocExample987Sat Nov 25 12:54:16 GMT 2000None

ObservDemo

public class ObservDemo extends Object
A simple demo of Observable->Observer
author
Ian Darwin
version
$Id: ObservDemo.java,v 1.2 2000/11/25 17:54:17 ian Exp $

Fields Summary
MyObserver
observer
MyObservable
model
Constructors Summary
public ObservDemo()


		observer = new MyObserver();

		model = new MyObservable(); 
		model.addObserver(observer);

	
Methods Summary
public voiddemo()

		model.changeSomething();
	
public static voidmain(java.lang.String[] av)

		ObservDemo me = new ObservDemo();
		me.demo();