private void setEnableStatusOfUseProxy(boolean enableStatus) { httpLabel.setEnabled(enableStatus); httpsLabel.setEnabled(enableStatus); ftpLabel.setEnabled(enableStatus); proxyAddressLabel.setEnabled(enableStatus); proxyPortLabel.setEnabled(enableStatus); proxyUserNameLabel.setEnabled(enableStatus); proxyPasswordLabel.setEnabled(enableStatus); httpProxyAddressTextField.setEnabled(enableStatus); httpProxyPortSpinner.setEnabled(enableStatus); httpProxyUserNameTextField.setEnabled(enableStatus); httpProxyPasswordField.setEnabled(enableStatus); httpsProxyAddressTextField.setEnabled(enableStatus); httpsProxyPortSpinner.setEnabled(enableStatus); httpsProxyUserNameTextField.setEnabled(enableStatus); httpsProxyPasswordField.setEnabled(enableStatus); ftpProxyAddressTextField.setEnabled(enableStatus); ftpProxyPortSpinner.setEnabled(enableStatus); ftpProxyUserNameTextField.setEnabled(enableStatus); ftpProxyPasswordField.setEnabled(enableStatus); socksLabel.setEnabled(!enableStatus); socksProxyAddressLabel.setEnabled(!enableStatus); socksProxyPortLabel.setEnabled(!enableStatus); socksProxyUserNameLabel.setEnabled(!enableStatus); socksProxyPasswordLabel.setEnabled(!enableStatus); socksProxyAddressTextField.setEnabled(!enableStatus); socksProxyPortSpinner.setEnabled(!enableStatus); socksProxyUserNameTextField.setEnabled(!enableStatus); socksProxyPasswordField.setEnabled(!enableStatus); }
/* * The state of one of the following items has changed: * 1. bUseFTPCheckB check box: Enable or disable FTP setting fields given the state of the "Use FTP" checkbox * 2. autoFlushRB radio button: Enable or disable the Flush interval combo box */ @Override public void itemStateChanged(ItemEvent eventI) { Object source = eventI.getSource(); if (source == null) { return; } else if (source == bUseFTPCheckB) { boolean bChecked = bUseFTPCheckB.isSelected(); ftpHostLabel.setEnabled(bChecked); ftpHostTF.setEnabled(bChecked); ftpUserLabel.setEnabled(bChecked); ftpUserTF.setEnabled(bChecked); ftpPasswordLabel.setEnabled(bChecked); ftpPasswordTF.setEnabled(bChecked); } else if (source == autoFlushRB) { if (autoFlushRB.isSelected()) { flushIntervalLabel.setEnabled(true); flushIntervalComboB.setEnabled(true); } else { flushIntervalLabel.setEnabled(false); flushIntervalComboB.setEnabled(false); } } }
private void enableProxyAuthentication(boolean enabled) { myProxyPasswordLabel.setEnabled(enabled); myProxyLoginLabel.setEnabled(enabled); myProxyLoginTextField.setEnabled(enabled); myProxyPasswordTextField.setEnabled(enabled); myRememberProxyPasswordCheckBox.setEnabled(enabled); }
public void actionPerformed(ActionEvent arg0) { Object src = arg0.getSource(); if (src == connectedCheckBox) { if (connectedCheckBox.isSelected()) { passwordField.setEnabled(true); passwordField.setBackground(Color.WHITE); } else { passwordField.setText(""); passwordField.setEnabled(false); passwordField.setBackground(Color.LIGHT_GRAY); } } if (src == okButton) { okPressed = true; PluginServices.getMDIManager().closeWindow(this); return; } if (src == cancelButton) { okPressed = false; PluginServices.getMDIManager().closeWindow(this); return; } if (src == driverComboBox) { String driverName = driverComboBox.getSelectedItem().toString(); IVectorialDatabaseDriver driver; try { driver = (IVectorialDatabaseDriver) LayerFactory.getDM().getDriver(driverName); portTextField.setText("" + driver.getDefaultPort()); } catch (DriverLoadException e1) { portTextField.setText(""); } return; } }
/** * This method initializes jPasswordFieldPassword * * @return javax.swing.JPasswordField */ private JPasswordField getJPasswordFieldPassword() { if (jPasswordFieldPassword == null) { jPasswordFieldPassword = new JPasswordField(); jPasswordFieldPassword.setBounds(new Rectangle(377, 285, 180, 30)); jPasswordFieldPassword.setText(""); jPasswordFieldPassword.setToolTipText("Enter your password here"); jPasswordFieldPassword.setEnabled(true); jPasswordFieldPassword.setEchoChar('*'); } return jPasswordFieldPassword; }
private void disableEnableElements(boolean enable) { jComboBoxAds.setEnabled(enable); jTextFieldAdsTitle.setEnabled(enable); jTextAreaAdsMessage.setEnabled(enable); jTextFieldAdress.setEnabled(enable); jTextFieldYoutubeUrl.setEnabled(enable); jTextFieldPhoneNumber.setEnabled(enable); jTextFieldIntervalTime.setEnabled(enable); jButtonBrowser.setEnabled(enable); jButtonSave.setEnabled(enable); jButtonStart.setEnabled(enable); jButtonStop.setEnabled(!enable); jTextFieldwww.setEnabled(enable); jButtonDeleteAds.setEnabled(enable); jButtonNewAds.setEnabled(enable); jTextFieldAccountName.setEnabled(enable); jPasswordFieldOldPassword.setEnabled(enable); jPasswordFieldNewPassword.setEnabled(enable); jPasswordFieldConfirmationNewPassword.setEnabled(enable); jButtonSaveUpdateUserPassword.setEnabled(enable); jTextFieldRedirectUrl.setEnabled(enable); }
/** * Sets whether or not the buttons composing the display are enabled. * * @param b Pass <code>true</code> if this component should be enabled, <code>false</code> * otherwise. */ public void setControlsEnabled(boolean b) { user.setEnabled(b); pass.setEnabled(b); login.setEnabled(b); enableControls(); // login.requestFocus(); configButton.setEnabled(b); encryptedButton.setEnabled(b); if (groupsBox != null) groupsBox.setEnabled(b); if (b) { setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); setButtonDefault(login); setButtonDefault(cancel); } else { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); login.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); login.setEnabled(false); } }
@Override public void setEnabled(boolean b) { setDataTebleLockState(true); if (!b) { unlock.setEnabled(false); lock.setEnabled(false); } start.setEnabled(false); abortTime.setEnabled(false); ready.setVisible(false); passwd.setEnabled(b); tons.setEnabled(b); save.setEnabled(b); cycleName.setEnabled(b); load.setEnabled(b); setTemp.setEnabled(b); notes.setText("Start up\nPress 'Set Temp' to begin."); super.setEnabled(b); }
public void popupSettingsDialog() { // Squirrel away copies of the current data orig_outputFolder = outputFolder; orig_chanName = chanName; orig_bUseFTP = bUseFTP; orig_ftpHost = ftpHost; orig_ftpUser = ftpUser; orig_ftpPassword = ftpPassword; orig_bPutDataWithEachEdit = bManualFlush; orig_flushInterval = flushInterval; orig_bUseRelativeTime = bUseRelativeTime; orig_bZipData = bZipData; orig_bChatMode = bChatMode; // Initialize data in the dialog outputDirTF.setText(outputFolder); chanNameTF.setText(chanName); bUseFTPCheckB.setSelected(bUseFTP); ftpHostTF.setText(ftpHost); ftpUserTF.setText(ftpUser); ftpPasswordTF.setText(ftpPassword); ftpHostLabel.setEnabled(bUseFTP); ftpHostTF.setEnabled(bUseFTP); ftpUserLabel.setEnabled(bUseFTP); ftpUserTF.setEnabled(bUseFTP); ftpPasswordLabel.setEnabled(bUseFTP); ftpPasswordTF.setEnabled(bUseFTP); autoFlushRB.setSelected(!bManualFlush); manualFlushRB.setSelected(bManualFlush); int selectedIdx = Arrays.asList(flushIntervalInts).indexOf((int) flushInterval); flushIntervalComboB.setSelectedIndex(selectedIdx); flushIntervalLabel.setEnabled(!bManualFlush); flushIntervalComboB.setEnabled(!bManualFlush); // Pop up the dialog centered on the parent frame pack(); setLocationRelativeTo(parent); setVisible(true); // this method won't return until setVisible(false) is called }
private void enabledUsuarios() { txtDniUsuario.setEnabled(true); txtUsuario.setEnabled(true); txtContraseña.setEnabled(true); btnGuardarUsuario.setEnabled(true); }
private void disabledUsuarios() { txtDniUsuario.setEnabled(false); txtUsuario.setEnabled(false); txtContraseña.setEnabled(false); btnGuardarUsuario.setEnabled(false); }
private void enableAuthFields(boolean selected) { userLabel.setEnabled(selected); userField.setEnabled(selected); passwordLabel.setEnabled(selected); passwordField.setEnabled(selected); }
@Override public void setEnabled(final boolean b) { editor.setEnabled(b); renderer.setEnabled(b); super.setEnabled(b); }
/** * Set current EntryBox to show input field or password field * * @param mode The <code>boolean</code> mode for editable state */ public void setEnabled(boolean enabled) { if (mode != PASS) inputfield.setEnabled(enabled); if (mode == PASS) passfield.setEnabled(enabled); }
/** * Set the enabled status of the password box * * @param enabled true if the password box is to be enabled */ @Override public void setEnabled(boolean enabled) { m_password.setEnabled(enabled); }