+ JDialog busyDialog = showBusyDialog();
+ Connection connection = freenetInterface.getConnection("jSite-update-check");
+ try {
+ if (!connection.connect()) {
+ busyDialog.setVisible(false);
+ JOptionPane.showMessageDialog(parent, I18n.getMessage(""), I18n.getMessage(""), JOptionPane.ERROR_MESSAGE);
+ return;
+ }
+ } catch (IOException ioe1) {
+ busyDialog.setVisible(false);
+ JOptionPane.showMessageDialog(parent, MessageFormat.format(I18n.getMessage(""), ioe1.getMessage()), I18n.getMessage(""), JOptionPane.ERROR_MESSAGE);
+ } finally {
+ connection.disconnect();
+ }