Index: trunk/src/org/openstreetmap/josm/data/Preferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 11442)
+++ trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 11443)
@@ -30,5 +30,4 @@
 import java.util.Map;
 import java.util.Map.Entry;
-import java.util.MissingResourceException;
 import java.util.Objects;
 import java.util.Optional;
@@ -1426,4 +1425,5 @@
         // Workaround to fix a Java bug. This ugly hack comes from Sun bug database: https://bugs.openjdk.java.net/browse/JDK-6292739
         // Force AWT toolkit to update its internal preferences (fix #6345).
+        // Does not work anymore with Java 9, to remove with Java 9 migration
         if (!GraphicsEnvironment.isHeadless()) {
             try {
@@ -1431,5 +1431,5 @@
                 Utils.setObjectsAccessible(field);
                 field.set(null, ResourceBundle.getBundle("sun.awt.resources.awt"));
-            } catch (ReflectiveOperationException | MissingResourceException e) {
+            } catch (ReflectiveOperationException | RuntimeException e) {
                 Main.warn(e);
             }
