阅读背景:

程序在Thread.sleep()和Timer期间冻结

来源:互联网 

Original question:

最初的问题:

This method is supposed to change the image being displayed on a JFrame gradually into another image. However, without some way to slow it down, it just seems to change from one image to the new image. In order to slow it down, I put in a Thread.sleep(1000) so the changes wouldn't happen instantly. However, with this line in there, my program freezes completely. No error message, no nothing. Can anyone please help me out? Suggest a better method to slow it down, or how this can be fixed.This method is su




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: