Index: trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryProvidersPanel.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryProvidersPanel.java	(revision 18366)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryProvidersPanel.java	(revision 18367)
@@ -602,4 +602,10 @@
         public void actionPerformed(ActionEvent evt) {
             layerInfo.loadDefaults(true, MainApplication.worker, false);
+            this.updateTableArea();
+            // Ensure that the table is updated properly if someone cancels the download. See JOSM #21797.
+            MainApplication.worker.execute(() -> GuiHelper.runInEDTAndWait(this::updateTableArea));
+        }
+
+        private void updateTableArea() {
             defaultModel.fireTableDataChanged();
             defaultTable.getSelectionModel().clearSelection();
