From 6acb9912526793132a39489ebd7e8a799ff3165d Mon Sep 17 00:00:00 2001 From: Andrew Su Date: Thu, 23 Dec 2010 16:45:37 -0500 Subject: Remove creation of swing thread for displaying dialogs. --- .../jnlp/controlpanel/NetworkSettingsPanel.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java') 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])); } }); -- cgit v1.2.3