211212213214215216217218219
public void setModel(TipOfTheDayModel model) { if (model == null) { throw new IllegalArgumentException("model can not be null"); } TipOfTheDayModel old = this.model; this.model = model; firePropertyChange("model", old, model); }