aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net
diff options
context:
space:
mode:
authorAndrew Su <[email protected]>2011-03-01 11:55:31 -0500
committerAndrew Su <[email protected]>2011-03-01 11:55:31 -0500
commit1ac3f509d9d1f3ae72a71e3f5e2397d396b0a083 (patch)
tree37cd99364d47be38ac533d868c6db71e20384717 /netx/net
parentb20853d58e1a9c593bce6dea7718c2924143054c (diff)
Hide unimplemented features in itw-settings.
Diffstat (limited to 'netx/net')
-rw-r--r--netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java6
-rw-r--r--netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java37
2 files changed, 23 insertions, 20 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java b/netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java
index 17b811e..f816824 100644
--- a/netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java
+++ b/netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java
@@ -221,11 +221,13 @@ public class ControlPanel extends JFrame {
SettingsPanel[] panels = new SettingsPanel[] { new SettingsPanel(Translator.R("CPTabAbout"), createAboutPanel()),
new SettingsPanel(Translator.R("CPTabCache"), createCacheSettingsPanel()),
new SettingsPanel(Translator.R("CPTabCertificate"), createCertificatesSettingsPanel()),
- // new SettingsPanel(Translator.R("CPTabClassLoader"), createClassLoaderSettingsPanel()),
+ // TODO: This is commented out since this is not implemented yet
+ // new SettingsPanel(Translator.R("CPTabClassLoader"), createClassLoaderSettingsPanel()),
new SettingsPanel(Translator.R("CPTabDebugging"), createDebugSettingsPanel()),
new SettingsPanel(Translator.R("CPTabDesktopIntegration"), createDesktopSettingsPanel()),
new SettingsPanel(Translator.R("CPTabNetwork"), createNetworkSettingsPanel()),
- new SettingsPanel(Translator.R("CPTabRuntimes"), createRuntimesSettingsPanel()),
+ // TODO: This is commented out since this is not implemented yet
+ // new SettingsPanel(Translator.R("CPTabRuntimes"), createRuntimesSettingsPanel()),
new SettingsPanel(Translator.R("CPTabSecurity"), createSecuritySettingsPanel()), };
// Add panels.
diff --git a/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java b/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
index c0bab21..1aaa57d 100644
--- a/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
+++ b/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
@@ -151,16 +151,17 @@ 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;
@@ -169,16 +170,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"));