Thread thread = new Thread(){
public void run() {
Runnable runnable = new Runnable(){
public void run() {
/* table的频繁删除、插入 */
}
};
SwingUtilities.invokeLater(runnable);
}
};
thread.start();
这样就会避免出现数组越界错误