日期:2014-05-20 浏览次数:20939 次
package com.net;
import javax.swing.SwingUtilities;
public class fdsfsd {
public static void main(String[] args) {
}
public void first() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Thread thread = new Thread(new Runnable() {
public void run() {
//我在刷新文件夹呢
}
});
}
});
}
public void second() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Thread thread = new Thread(new Runnable() {
public void run() {
}
});
}
});
}
}
import javax.swing.SwingUtilities;
public class fdsfsd {
public static void main(String[] args) {
new fdsfsd().first();
}
public void first() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
System.out.println("我显示了");
Thread thread = new Thread(new Runnable() {
public void run() {
System.out.println("到里面的run了");
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
}
System.out.println("我等一会显示");
//我在刷新文件夹呢
}
});
}
});
}
}