FileDocCategorySizeDatePackage
ObservDemo.javaAPI DocExample964Mon Dec 29 13:52:22 GMT 2003None

ObservDemo

public class ObservDemo extends Object
A simple demo of Observable->Observer
author
Ian Darwin
version
$Id: ObservDemo.java,v 1.3 2003/12/29 19:52:22 ian Exp $

Fields Summary
MyView
view
MyModel
model
Constructors Summary
public ObservDemo()


		view = new MyView();

		model = new MyModel(); 
		model.addObserver(view);

	
Methods Summary
public voiddemo()

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

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