// ObservableBool.java // // implements flag to say when the contract has been decided upon // much stolen directly from "Using Java" by the Sun User Group import java.util.*; public class ObservableBool extends Observable { boolean status; ObservableBool() { status = false; } ObservableBool (boolean s) { status = s; } public void setValue (boolean s) { if (status != s) { status = s; setChanged(); notifyObservers(); } } public boolean getValue () { return status; } }