You might want to look into the SwingUtilities.invokeLater() method. This lets you integrate some Runnable code into the Swing UI thread without messing up anything.
Something like
Code://.... // Your thread code here //... // Then when you're ready to update the UI:- SwingUtilities.invokeLater(new Runnable(){ public void run(){ // Code to update UI } });




Reply With Quote