Put console message updates inside EventQueue.invokeLater, so that UI updates are performed by the UI thread.