Add uiUpdateInterval support to the jni code, tidied up the jni code.
Dialog appearance improvements
Minor bug fixes