Wait until end of thread execution before executing the next method

后端 未结 6 2071
慢半拍i
慢半拍i 2021-01-28 19:28

I\'ve a JFrame subclass that manage my UI and call a method of Item Object to import items in my DB:

public TestGUI() throws IOException
{

    initComponents();         


        
6条回答
  •  伪装坚强ぢ
    2021-01-28 20:01

    Check out SwingWorker and SwingUtilities in case you use Swing.
    They contain helper threading APIs

提交回复
热议问题