Index: applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java	(revision 31463)
+++ applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java	(revision 31651)
@@ -274,6 +274,12 @@
     @Override
     public void setVisible(boolean visible) {
+        final String preferenceKey = getClass().getName() + ".geometry";
         if (visible) {
-            WindowGeometry.centerInWindow(Main.parent, getSize()).applySafe(this);
+            new WindowGeometry(
+                    preferenceKey,
+                    WindowGeometry.centerInWindow(getParent(), getSize())
+            ).applySafe(this);
+        } else {
+            new WindowGeometry(this).remember(preferenceKey);
         }
         super.setVisible(visible);
