diff options
author | Andrew Su <[email protected]> | 2010-12-23 16:45:37 -0500 |
---|---|---|
committer | Andrew Su <[email protected]> | 2010-12-23 16:45:37 -0500 |
commit | 6acb9912526793132a39489ebd7e8a799ff3165d (patch) | |
tree | 4a3388cabb1c74512efb7575b54044b9ee6664a4 /netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java | |
parent | 6cd5997e86146410c93b63d21a1fe1522e390051 (diff) |
Remove creation of swing thread for displaying dialogs.
Diffstat (limited to 'netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java b/netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java index cb41425..b1a6f95 100644 --- a/netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java +++ b/netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java @@ -115,22 +115,18 @@ public class NetworkSettingsPanel extends JPanel implements ActionListener { JLabel portLabel = new JLabel(Translator.R("NSPort") + ":"); final JTextField addressField = new JTextField(config.getProperty(properties[1]), 10); addressField.getDocument().addDocumentListener(new DocumentAdapter(config, properties[1])); - + final JTextField portField = new JTextField(config.getProperty(properties[2]), 3); portField.getDocument().addDocumentListener(new DocumentAdapter(config, properties[1])); - + // Create the button which allows setting of other types of proxy. JButton advancedProxyButton = new JButton(Translator.R("NSAdvanced") + "..."); advancedProxyButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - try { - AdvancedProxySettingsDialog.showAdvancedProxySettingsDialog(config); - addressField.setText(config.getProperty(properties[1])); - portField.setText(config.getProperty(properties[2])); - } catch (Exception e1) { - e1.printStackTrace(); - } + AdvancedProxySettingsDialog.showAdvancedProxySettingsDialog(config); + addressField.setText(config.getProperty(properties[1])); + portField.setText(config.getProperty(properties[2])); } }); |