aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorAndrew Su <[email protected]>2011-04-20 10:44:58 -0400
committerAndrew Su <[email protected]>2011-04-20 10:44:58 -0400
commitdb17a28d1925d99f1c647cee2fe8fe249572f475 (patch)
treea32ee3d81313bc58927deab0ed887961eeedd515 /netx/net/sourceforge
parent19186a9de2f09a3eec61577121071c8395f190e3 (diff)
Unhide components for setting cache size limit in itw-settings
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java38
1 files changed, 18 insertions, 20 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java b/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
index 1aaa57d..43b59b4 100644
--- a/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
+++ b/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
@@ -151,17 +151,15 @@ public class TemporaryInternetFilesPanel extends NamedBorderPanel implements Cha
}
});
- // TODO: This property is currently not honored, uncomment to enable when it is implemented.
- // This is to work with how much space is available for caching.
- // JLabel lCacheSize = new JLabel(Translator.R("TIFPCacheSize") + ":");
- // slCacheSize = new JSlider(minSize, maxSize, Integer.parseInt(this.config.getProperty(properties[2])));
- // slCacheSize.setMinorTickSpacing(50);
- // slCacheSize.setPaintTicks(true);
- // SpinnerNumberModel snmCacheSize = new SpinnerNumberModel(Integer.parseInt(this.config.getProperty(properties[2])), minSize, maxSize, 1);
- // spCacheSize = new JSpinner(snmCacheSize);
- //
- // slCacheSize.addChangeListener(this);
- // spCacheSize.addChangeListener(this);
+ JLabel lCacheSize = new JLabel(Translator.R("TIFPCacheSize") + ":");
+ slCacheSize = new JSlider(minSize, maxSize, Integer.parseInt(this.config.getProperty(properties[2])));
+ slCacheSize.setMinorTickSpacing(50);
+ slCacheSize.setPaintTicks(true);
+ SpinnerNumberModel snmCacheSize = new SpinnerNumberModel(Integer.parseInt(this.config.getProperty(properties[2])), minSize, maxSize, 1);
+ spCacheSize = new JSpinner(snmCacheSize);
+
+ slCacheSize.addChangeListener(this);
+ spCacheSize.addChangeListener(this);
c.gridy = 0;
c.gridx = 0;
@@ -170,16 +168,16 @@ public class TemporaryInternetFilesPanel extends NamedBorderPanel implements Cha
c.gridx = 1;
c.weightx = 0;
diskSpacePanel.add(cbCompression, c);
- // c.gridy = 1;
- // c.gridx = 0;
- // c.gridwidth = GridBagConstraints.REMAINDER;
+ c.gridy = 1;
+ c.gridx = 0;
+ c.gridwidth = GridBagConstraints.REMAINDER;
c.weightx = 1;
- // diskSpacePanel.add(lCacheSize, c);
- // c.gridwidth = 1;
- // c.gridy = 2;
- // diskSpacePanel.add(slCacheSize, c);
- // c.gridx = 1;
- // diskSpacePanel.add(spCacheSize, c);
+ diskSpacePanel.add(lCacheSize, c);
+ c.gridwidth = 1;
+ c.gridy = 2;
+ diskSpacePanel.add(slCacheSize, c);
+ c.gridx = 1;
+ diskSpacePanel.add(spCacheSize, c);
JPanel buttonDeleteRestore = new JPanel(new FlowLayout(FlowLayout.TRAILING));
JButton bViewFiles = new JButton(Translator.R("TIFPViewFiles"));