diff options
author | Andrew Su <[email protected]> | 2011-01-04 11:23:15 -0500 |
---|---|---|
committer | Andrew Su <[email protected]> | 2011-01-04 11:23:15 -0500 |
commit | 452ef539b985c1cbfaa479088a161a98ba881dfe (patch) | |
tree | 8db58139b111ed7a92d3d0407adb1c9d0797883f /netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java | |
parent | 36afa69683ce509c5952a0fc1570ea6c05f4e186 (diff) |
Hide unsupported options in itw-settings' security options.
Diffstat (limited to 'netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java b/netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java index 9727b46..0c76f6e 100644 --- a/netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java +++ b/netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java @@ -114,16 +114,16 @@ public class SecuritySettingsPanel extends NamedBorderPanel implements ActionLis // Only display the ones with properties that are valid or existent. for (int i = 0; i < properties.length; i++) { - try { - String s = config.getProperty(properties[i]); - securityGeneralOptions[i].setSelected(Boolean.parseBoolean(s)); - securityGeneralOptions[i].setActionCommand(properties[i]); - securityGeneralOptions[i].addActionListener(this); - c.gridy = i + 1; - topPanel.add(securityGeneralOptions[i], c); - } catch (Exception e) { + String s = config.getProperty(properties[i]); + if (s == null) { securityGeneralOptions[i] = null; + continue; } + securityGeneralOptions[i].setSelected(Boolean.parseBoolean(s)); + securityGeneralOptions[i].setActionCommand(properties[i]); + securityGeneralOptions[i].addActionListener(this); + c.gridy = i + 1; + topPanel.add(securityGeneralOptions[i], c); } Component filler = Box.createRigidArea(new Dimension(1, 1)); |