Opening JDialog with SwingWorker?
问题 I have a project J2SE that use JPA. In some JDialogs I do returns getResultList() and populate JTable, JComboBox, JList etc. at constructor of class. So when I will create any instance for these dialogs sometimes are slow. I think use SwingWorker and JProgressbar and create a (loading) to open JDialogs is a good solution, but I don't know how to do this. I'm trying this. // JProgressbar progress = new JProgressBar(); //custommer dialog JDialog custommer = new JDialog(); //here slow because I