diff --git a/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java b/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
index f930bc52d..5ecab8afc 100644
|
a
|
b
|
|
| 8 | 8 | import java.util.ArrayList; |
| 9 | 9 | import java.util.Comparator; |
| 10 | 10 | import java.util.List; |
| | 11 | import java.util.Locale; |
| 11 | 12 | import java.util.Map; |
| 12 | 13 | import java.util.Map.Entry; |
| 13 | 14 | import java.util.Set; |
| … |
… |
|
| 36 | 37 | import org.openstreetmap.josm.tools.GBC; |
| 37 | 38 | import org.openstreetmap.josm.tools.Logging; |
| 38 | 39 | import org.openstreetmap.josm.tools.Pair; |
| | 40 | import org.openstreetmap.josm.tools.Utils; |
| 39 | 41 | |
| 40 | 42 | /** |
| 41 | 43 | * Panel for cache content management. |
| … |
… |
public CacheContentsPanel() {
|
| 59 | 61 | |
| 60 | 62 | private void addToPanel(final CacheAccess<String, BufferedImageCacheEntry> cache, final String name) { |
| 61 | 63 | final Long cacheSize = getCacheSize(cache); |
| | 64 | final String sizeString = Utils.getSizeString(cacheSize, Locale.getDefault()); |
| 62 | 65 | final TableModel tableModel = getTableModel(cache); |
| 63 | 66 | |
| 64 | 67 | GuiHelper.runInEDT(() -> { |
| 65 | | add(new JLabel(tr("{0} cache, total cache size: {1} bytes", name, cacheSize)), |
| | 68 | add(new JLabel(tr("{0} cache, total cache size: {1}", name, sizeString)), |
| 66 | 69 | GBC.eol().insets(5, 5, 0, 0)); |
| 67 | 70 | add(new JScrollPane(getTableForCache(cache, tableModel)), |
| 68 | 71 | GBC.eol().fill(GBC.BOTH)); |