Use swing thread for error message dialog display
Merge pull request #1065 from msteiger/swing_dialog

Use swing thread for error message dialog display