congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
JPasswordField.setText
Code IndexAdd Tabnine to your IDE (free)

How to use
setText
method
in
javax.swing.JPasswordField

Best Java code snippets using javax.swing.JPasswordField.setText (Showing top 20 results out of 1,071)

origin: wiztools/rest-client

@Override
public void clear() {
  jcb_types.setSelectedItem(AuthHelper.NONE);
  
  jcb_preemptive.setSelected(false);
  
  jtf_host.setText("");
  jtf_realm.setText("");
  jtf_domain.setText("");
  jtf_workstation.setText("");
  jtf_username.setText("");
  jpf_password.setText("");
  jtf_ntlm_username.setText("");
  jpf_ntlm_password.setText("");
  jtf_bearer_token.setText("");
}
origin: wiztools/rest-client

public void clear() {
  jp_type.setSelectedKeyStoreType(KeyStoreType.JKS);
  jtf_file.setText("");
  jpf_pwd.setText("");
}

origin: wiztools/rest-client

public void setKeyStore(SSLKeyStore store) {
  if(store != null) {
    jp_type.setSelectedKeyStoreType(store.getType());
    jtf_file.setText(store.getFile().getAbsolutePath());
    if(store.getType() != KeyStoreType.PEM)
      jpf_pwd.setText(new String(store.getPassword()));
    else
      jpf_pwd.setText("");
  }
  else {
    clear();
  }
}

origin: wiztools/rest-client

jtf_username.setText(a.getUsername());
if(a.getPassword() != null && a.getPassword().length > 0)
  jpf_password.setText(new String(a.getPassword()));
jcb_preemptive.setSelected(a.isPreemptive());
jtf_ntlm_username.setText(a.getUsername());
if(a.getPassword() != null && a.getPassword().length > 0)
  jpf_ntlm_password.setText(new String(a.getPassword()));
origin: wiztools/rest-client

private void setUIFromCache(){
  ProxyConfig proxy = ProxyConfig.getInstance();
  
  proxy.acquire();
  jcb_enable.setSelected(proxy.isEnabled());
  jtf_host.setText(proxy.getHost());
  jtf_port.setText("" + proxy.getPort());
  jcb_auth_enable.setSelected(proxy.isAuthEnabled());
  jtf_username.setText(proxy.getUsername());
  if(proxy.getPassword() == null){
    jpf_password.setText("");
  }
  else{
    jpf_password.setText(new String(proxy.getPassword()));
  }
  proxy.release();
  // Disable/enable the interface:
  toggleEnable(proxy.isEnabled());
  // toggleAuthEnable(proxy.isAuthEnabled());
}

origin: magefree/mage

private void connectLocalhost(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFind2findPublicServerActionPerformed
  String serverAddress = "localhost";
  this.txtServer.setText(serverAddress);
  this.txtPort.setText("17171");
  // Update userName and password according to the chosen server.
  this.txtUserName.setText(MagePreferences.getUserName(serverAddress));
  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));
}//GEN-LAST:event_btnFind2findPublicServerActionPerformed
origin: magefree/mage

private void connectBeta(java.awt.event.ActionEvent evt) {
  String serverAddress = "xmage.today";
  this.txtServer.setText(serverAddress);
  this.txtPort.setText("17171");
  // Update userName and password according to the chosen server.
  this.txtUserName.setText(MagePreferences.getUserName(serverAddress));
  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));
}
origin: magefree/mage

private void connectXmageus(java.awt.event.ActionEvent evt) {
  String serverAddress = "mtg.powersofwar.com";
  this.txtServer.setText(serverAddress);
  this.txtPort.setText("17171");
  // Update userName and password according to the chosen server.
  this.txtUserName.setText(MagePreferences.getUserName(serverAddress));
  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));
}
origin: magefree/mage

private void connectXmageDe(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFind1findPublicServerActionPerformed
  String serverAddress = "xmage.de";
  this.txtServer.setText(serverAddress);
  this.txtPort.setText("17171");
  // Update userName and password according to the chosen server.
  this.txtUserName.setText(MagePreferences.getUserName(serverAddress));
  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));        // TODO add your handling code here:
}//GEN-LAST:event_btnFind1findPublicServerActionPerformed
origin: magefree/mage

public void showDialog(ConsoleFrame console) {
  this.console = console;
  this.txtServer.setText(ConsoleFrame.getPreferences().get("serverAddress", "localhost"));
  this.txtPort.setText(ConsoleFrame.getPreferences().get("serverPort", Integer.toString(17171)));
  this.chkAutoConnect.setSelected(Boolean.parseBoolean(ConsoleFrame.getPreferences().get("autoConnect", "false")));
  this.txtProxyServer.setText(ConsoleFrame.getPreferences().get("proxyAddress", "localhost"));
  this.txtProxyPort.setText(ConsoleFrame.getPreferences().get("proxyPort", Integer.toString(17171)));
  this.cbProxyType.setSelectedItem(Connection.ProxyType.valueOf(ConsoleFrame.getPreferences().get("proxyType", "NONE").toUpperCase(Locale.ENGLISH)));
  this.txtProxyUserName.setText(ConsoleFrame.getPreferences().get("proxyUsername", ""));
  this.txtPasswordField.setText(ConsoleFrame.getPreferences().get("proxyPassword", ""));
  this.showProxySettings();
  this.setModal(true);
  this.setLocation(50, 50);
  this.setVisible(true);
}
origin: magefree/mage

  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));
} else {
  JOptionPane.showMessageDialog(null, "Wrong server data format.");
origin: magefree/mage

public void showDialog() {
  String serverAddress = MagePreferences.getServerAddressWithDefault(Config.serverName);
  this.txtServer.setText(serverAddress);
  this.txtPort.setText(Integer.toString(MagePreferences.getServerPortWithDefault(Config.port)));
  this.txtUserName.setText(MagePreferences.getUserName(serverAddress));
  this.txtPassword.setText(MagePreferences.getPassword(serverAddress));
  this.chkAutoConnect.setSelected(Boolean.parseBoolean(MageFrame.getPreferences().get(KEY_CONNECT_AUTO_CONNECT, "false")));
  this.chkForceUpdateDB.setSelected(false); // has always to be set manually to force comparison
  String selectedFlag = MageFrame.getPreferences().get(KEY_CONNECT_FLAG, "world");
  // set the selected country/flag
  for (int i = 0; i < cbFlag.getItemCount(); i++) {
    String[] name = (String[]) cbFlag.getItemAt(i);
    if (name[1].equals(selectedFlag)) {
      cbFlag.setSelectedIndex(i);
      break;
    }
  }
  this.setModal(true);
  this.setLocation(50, 50);
  this.setVisible(true);
}
origin: dboissier/mongo4idea

serverUrlsField.setText(configuration.getUrlsInSingleString());
usernameField.setText(configuration.getUsername());
passwordField.setText(configuration.getPassword());
userDatabaseField.setText(configuration.getUserDatabase());
authenticationDatabaseField.setText(configuration.getAuthenticationDatabase());
origin: net.java.dev.jets3t/jets3t

/**
 * Clears the user-provided password field.
 */
public void clearPassword() {
  passwordPasswordField.setText("");
}
origin: org.nhind/agent

  public void clear()
  {
    pass.setText("");
  }
}    
origin: kaikramer/keystore-explorer

/**
 * Set the password quality field's text.
 *
 * @param text
 *            Text
 */
public void setText(String text) {
  jpfPassword.setText(text);
  passwordChanged();
}
origin: ontop/ontop

private void resetTextFields() {
  txtJdbcUrl.setText("");
  txtDatabasePassword.setText("");
  txtDatabaseUsername.setText("");
  comboListener.setNotify(false);
  txtJdbcDriver.setSelectedIndex(0);
  comboListener.setNotify(true);
}
origin: kaikramer/keystore-explorer

  @Override
  public void itemStateChanged(ItemEvent evt) {
    if (jcbEncrypted.isSelected()) {
      jpfPassword.setEnabled(true);
    } else {
      jpfPassword.setEnabled(false);
      jpfPassword.setText("");
    }
  }
});
origin: kaikramer/keystore-explorer

  @Override
  public void itemStateChanged(ItemEvent evt) {
    if (jcbEncrypted.isSelected()) {
      jpfPassword.setEnabled(true);
    } else {
      jpfPassword.setEnabled(false);
      jpfPassword.setText("");
    }
  }
});
origin: com.synaptix.toast/toast-tk-fixtures

public void handle(JPasswordField textField, CommandRequest command) {
  switch (command.action) {
  case SET:
    textField.setText(command.value);
    break;
  case CLICK:
    rbt.click(textField);
  default:
    throw new IllegalArgumentException("Unsupported command for JPasswordField: " + command.action.name());
  }
}
 
javax.swingJPasswordFieldsetText

Popular methods of JPasswordField

  • <init>
  • getPassword
  • setEnabled
  • addActionListener
  • addKeyListener
  • setColumns
  • getDocument
  • setEchoChar
  • requestFocusInWindow
  • setEditable
  • setPreferredSize
  • addFocusListener
  • setPreferredSize,
  • addFocusListener,
  • setFont,
  • setToolTipText,
  • setName,
  • getEchoChar,
  • getText,
  • requestFocus,
  • setDocument

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JList (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now