X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Fcache%2FManageCacheFunction.java;h=04e3cc14e60e5d01a1cb21f02d8cea9b73fb106b;hp=551eb350ef74da51d5d17a22a52c333bd51dfdcb;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=649c5da6ee1bbc590699e11a92316ece2ea8512d diff --git a/tim/prune/function/cache/ManageCacheFunction.java b/tim/prune/function/cache/ManageCacheFunction.java index 551eb35..04e3cc1 100644 --- a/tim/prune/function/cache/ManageCacheFunction.java +++ b/tim/prune/function/cache/ManageCacheFunction.java @@ -203,11 +203,11 @@ public class ManageCacheFunction extends GenericFunction implements Runnable c.gridheight = 1; c.gridwidth = 2; c.weightx = 0.0; c.weighty = 0.0; c.anchor = GridBagConstraints.FIRST_LINE_START; - _tileSetLabel = new JLabel("tileset label"); + _tileSetLabel = new JLabel("dummy text to be replaced"); mainPanel.add(_tileSetLabel, c); c.gridx = 0; c.gridy = 1; c.ipady = 20; - _zoomLabel = new JLabel("zoom label"); + _zoomLabel = new JLabel("dummy text to be replaced"); mainPanel.add(_zoomLabel, c); JRadioButton deleteOldRadio = new JRadioButton(I18nManager.getText("dialog.diskcache.deleteold")); @@ -227,7 +227,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable c.gridwidth = 1; c.gridx = 0; c.gridy = 3; c.insets = new Insets(0, 40, 0, 0); - _ageLabel = new JLabel("Maximum age (days)"); + _ageLabel = new JLabel(I18nManager.getText("dialog.diskcache.maximumage")); mainPanel.add(_ageLabel, c); _daysField = new WholeNumberField(2); _daysField.setMinimumSize(new Dimension(20, 1)); @@ -281,6 +281,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable if (_model.getNumTileSets() <= 0) { _app.showErrorMessage(getNameKey(), "error.cache.empty"); + _dialog.dispose(); return; }