You should have posted this message in the Swing/awt forum. Bartender, can you do that?
The updateUI method code is useless here. It is used to change properties of the look-and-feel, which is here not the case. So you can remove it.
Swing uses a modified Model-View-Controller (MVC
pattern), which a Model-UI pattern. When a call to setValue() in JProgressBar is made, this call is delegated to the model which is embedded in the JProgressBar. The model then notifies the view that it should repaint. This should be automatic. So I don't quite get the point using invokeLater.
Check
[This message has been edited by Wilfried LAURENT (edited October 17, 2001).]