private static String inputConnectionString(String defaultString) {
        JOptionPane pane = new JOptionPane(
                bundle.getString("start.connection.message"),
                JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
        pane.setWantsInput(true);
        pane.setInputValue(defaultString);
        pane.setInitialValue(defaultString);
        pane.setInitialSelectionValue(defaultString);

        JDialog dialog = pane.createDialog(null,
                bundle.getString("start.connection.title"));
        dialog.setVisible(true);

        String connectionString = null;
        Object inputValue = pane.getInputValue();
        if (inputValue == null) {
            return null;
        }
        connectionString = (String) inputValue;
        if (connectionString.equals("")) {
            connectionString = DEFAULT_CONNECTION_STRING;
        }
        return inputValue == null ? null : (String) inputValue;
    }