_proxy.addListener(address, port, base, simulator, plugins);
boolean primary = primaryCheckBox.isSelected(); _proxy.addListener(address, port, base, simulator, plugins, primary);
    private void startButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startButtonActionPerformed        try {            String address = addressTextField.getText();            int port = Integer.parseInt(portTextField.getText().trim());            HttpUrl base = null;            if (!baseTextField.getText().equals("")) {                base = new HttpUrl(baseTextField.getText());            }            String simulator = (String) networkComboBox.getSelectedItem();            boolean plugins = pluginsCheckBox.isSelected();            _proxy.addListener(address, port, base, simulator, plugins);            addressTextField.setText("");            portTextField.setText("");            baseTextField.setText("");        } catch (Exception e) {            _logger.severe("Error starting the listener : " + e);            JOptionPane.showMessageDialog(null, new String[] {"Error starting proxy listener: ", e.toString()}, "Error", JOptionPane.ERROR_MESSAGE);        }    }//GEN-LAST:event_startButtonActionPerformed