Swing is not thread safe. Updating Swing components should be done on the EDT.