1 package bookExamples.ch19Events.observables; 2 3 import java.util.Observable; 4 5 public class ObservableBooleanArray 6 extends Observable { 7 private boolean b[] = null; 8 9 ObservableBooleanArray(boolean b[]) { 10 this.setB(b); 11 } 12 13 public boolean[] getB() { 14 return b; 15 } 16 17 public void setB(boolean[] b) { 18 this.b = b; 19 setChanged(); 20 } 21 22 } 23