swing jtable

Thread thread = new Thread(){
        public void run() {
                Runnable runnable = new Runnable(){

                        public void run() {
                
                        /* table的频繁删除、插入 */

                        }
                };
                SwingUtilities.invokeLater(runnable);
         }
};

thread.start();

 

这样就会避免出现数组越界错误

你可能感兴趣的:(thread,swing)