线程在jTable上

时间:2017-06-17 06:22:16

标签: java mysql multithreading swing

我目前正在尝试在桌面上实现线程化。不幸的是,当我通过查询手动将值添加到表时,此表不会同时显示值。这是我演出的事件:

Sub CompareCells()
    If [A2,A3] = [N2,N3] Then
        [L2,L3] = "yes"
    Else
        [L2,L3] = "no"
    End If
End Sub

这是一个专门为它准备的课程。

private void formWindowOpened(java.awt.event.WindowEvent evt) {    
  Runnable hello = new orderRun(tableOrder); //sending the table to the class
  Thread thread1 = new Thread(hello); //opening a thread
  thread1.setDaemon(true);
  thread1.start();
}    

现在,无论如何,当我通过查询添加值时,从数据库捕获的表上的值是同时显示还是同时显示?

0 个答案:

没有答案