我无法让它进入睡眠状态,我希望它在继续之前暂停一秒。在我的循环中添加睡眠
public static void main(String[] args) {
//supply your own path instead of using this one
String path = "\\image.JPG";
for(;;)
SPI.INSTANCE.SystemParametersInfo(
new UINT_PTR(SPI.SPI_SETDESKWALLPAPER),
new UINT_PTR(0),
path,
new UINT_PTR(SPI.SPIF_UPDATEINIFILE | SPI.SPIF_SENDWININICHANGE));
}
当我尝试添加Thread.sleep(1000);它给了我一个错误,无法访问的代码。
你在哪里添加它? – 2012-07-09 17:53:34
你想在哪里停止这 – 2012-07-09 17:53:36
你在哪里添加Thread.sleep()调用? – 2012-07-09 17:53:46