Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Differences between updateUI and repaint methods

843807Jul 29 2010 — edited Jul 29 2010
I'm a little confused by the methods updateUI() and repaint(). What's the detail differences between them, and in what situation I should invoke updateUI(), and in what situation I should use the other?
And how to force swing to invoke paint() method immediately?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Jul 29 2010
8 comments
1,066 views