Replace Thread with invokeLater in PreferencesFrame
Merge pull request #2811 from federicobond/preferences-fix

Replace Thread with invokeLater in PreferencesFrame