Dr. Dobb's Journal March 1998
(a)
emJri.setJriServer(this);
emJri.setJSJriLink("Hrs");
emJri.setJSJriLink("Min");
emJri.setJSJriLink("Sec");
(b)
public void notifyChange(String variable, Object value) {
if( variable.equals("Sec")) {
seconds = ((Integer)value).intValue();
timeDisplay.setSeconds(seconds);
}
else if( variable.equals("Hrs") ) {
hours = ((Integer)value).intValue();
set_hours();
}
else if( variable.equals("Min")) {
minutes = ((Integer)value).intValue();
timeDisplay.setMinutes(minutes);
}
}
(c)
timeDisplay.setJriLink("Sec", "Seconds");