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();
.join() method would block the current thread until is complete.