Object[] args = new Object[1];
Scriptable scope = getTopLevelScope(this);
Scriptable thisObj = scope;
Context cx = Context.getCurrentContext();
args[0] = ((ActionEvent)e).getActionCommand();
fun.call(cx, scope, thisObj, args);
} catch (Exception exc) {
throw Context.reportRuntimeError(exc.getMessage());
}
}
} else if (e instanceof ValueChangedEvent) {