首页上一页 1 下一页尾页 1 条记录 1/1页
java 线程中的run方法中有close: 是什么意思
发表在Java图书答疑
2012-02-25
是否精华
是
否
版块置顶:
是
否
java 线程中的run方法中有close: 是什么意思
public void run() {
close: //就这个
while (isPlay) {
for (int i = showIndex; i < maxIndex + 1; i++) {
showPointedPhoto(i);
try {
Thread.sleep((secondComboBox.getSelectedIndex() + 1) * 1000);
while (isPause) { Thread.sleep(500);}
} catch (InterruptedException e) {e.printStackTrace();}
public void run() {
close: //就这个
while (isPlay) {
for (int i = showIndex; i < maxIndex + 1; i++) {
showPointedPhoto(i);
try {
Thread.sleep((secondComboBox.getSelectedIndex() + 1) * 1000);
while (isPause) { Thread.sleep(500);}
} catch (InterruptedException e) {e.printStackTrace();}