Replace Thread with invokeLater in PreferencesFrame