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?

#66357

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