Hi All,
I want to use function “application.updateUI()” inside a plugin function in native jave code. So what i need to do for that.
Please specify if any idea related to above…
Thanks
DP
Hi All,
I want to use function “application.updateUI()” inside a plugin function in native jave code. So what i need to do for that.
Please specify if any idea related to above…
Thanks
DP
You cannot use application.updateUI() from a plugin (and this should also not be needed)
We are providing application.updateUI() function if you in a loop do stuff witch affect the UI (and you want this to be seen), but in all cases you could better freeze the ui during your work and update the ui after wards
Normally a plugin is called on the event thread in the richclient, all things you do in the event thread stalls the UI, and painting happens when you are done with the event thread (this holds true for all swing applications, it’s default behavour in swing)
You also could post your action from another thread on the event thread (via SwingUtilities.invokeLater) in which case the ui is repaining during your actions