portSpinnerModel = new SpinnerNumberModel();
portSpinnerModel.setMinimum(PortRange.MIN_PORT);
portSpinnerModel.setMaximum(PortRange.MAX_PORT);
settingMediator.add(Settings.PORT, portSpinnerModel);
portSpinner = new JSpinner(portSpinnerModel);
portSpinner.setEditor(new JSpinner.NumberEditor(portSpinner, "#"));
portLabel = builder.append("", portSpinner);
builder.nextLine();
usePassiveCheckBox = new JCheckBox();
settingMediator.add(Settings.USE_PASSIVE, usePassiveCheckBox);
builder.append("", usePassiveCheckBox, 3);
builder.nextLine();
builder.appendSeparator(i18n.tr("Authentication"));
usernameTextField = new JTextField(Constants.DEFAULT_COLUMNS);
settingMediator.add(Settings.USERNAME, usernameTextField);
usernameLabel = builder.append("", usernameTextField, 3);
builder.nextLine();
passwordInfoLabel = new JLabel();
passwordInfoLabel.setForeground(Color.RED);
builder.append(passwordInfoLabel, 5);
builder.nextLine();
passwordTextField = new JPasswordField(Constants.DEFAULT_COLUMNS);
settingMediator.add(Settings.PASSWORD, passwordTextField);
passwordLabel = builder.append("", passwordTextField, 3);
builder.nextLine();
adminModeCheckBox = new JCheckBox();
settingMediator.add(Settings.ADMIN_MODE, adminModeCheckBox);
adminPasswordTextField = new JPasswordField(Constants.DEFAULT_COLUMNS);
settingMediator.add(Settings.ADMIN_PASSWORD, adminPasswordTextField);
builder.append(adminModeCheckBox); builder.append(adminPasswordTextField, 3);
builder.nextLine();
adminModeCheckBox.addItemListener(new EnableListener(adminPasswordTextField));
builder.appendSeparator(i18n.tr("Status Update"));
updateOnStartupCheckBox = new JCheckBox();
settingMediator.add(Settings.UPDATE_ON_STARTUP, updateOnStartupCheckBox);
builder.append(updateOnStartupCheckBox, 4);
builder.nextLine();
autoUpdateCheckBox = new JCheckBox();
autoUpdateCheckBox.setEnabled(false);
settingMediator.add(Settings.DO_AUTO_UPDATE, autoUpdateCheckBox);
// the auto updater is error prone, therefore it has been disabled
// until fixed
//builder.append(autoUpdateCheckBox, 4);
builder.nextLine();
autoUpdateIntervalModel = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 30);
settingMediator.add(Settings.AUTO_UPDATE_INTERVAL, autoUpdateIntervalModel);
autoUpdateIntervalSpinner = new JSpinner(autoUpdateIntervalModel);
autoUpdateIntervalSpinner.setEditor(new JSpinner.NumberEditor(autoUpdateIntervalSpinner, "# s"));
//autoUpdateIntervalLabel = builder.append("", autoUpdateIntervalSpinner);
autoUpdateIntervalLabel = new JLabel();
builder.nextLine();