Home › Forums › Development › ThreadUtil – how to update the user interface within a thread? › Reply To: ThreadUtil – how to update the user interface within a thread?
June 25, 2019 at 10:39 pm
#66357
Participant
Found a solution, which is to include the components update (jComboBox and graphics creation) into another thread, from SwingUtilities (javax.swing.SwingUtilities):
SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
No more bug and warnings then…
Fred