Package javax.swing

Examples of javax.swing.JPasswordField


    gbConstraints.fill = GridBagConstraints.HORIZONTAL;
    gbConstraints.gridy = 2; gbConstraints.gridx = 0;
    gbLayout.setConstraints(passwordLab, gbConstraints);
    db.add(passwordLab);

    m_passwordText = new JPasswordField();
    JPanel passwordHolder = new JPanel();
    passwordHolder.setLayout(new BorderLayout());
    passwordHolder.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    passwordHolder.add(m_passwordText, BorderLayout.CENTER);
    /*passwordHolder.setMinimumSize(new Dimension(width * 2, height));
View Full Code Here


    passwordPanel.add(new LocalizedJLabel(loginViewMessages, "password"));
    rememberPassword = new LocalizedJCheckBox(loginViewMessages, "remember");
    passwordPanel.add(rememberPassword);
    formPanel.add(passwordPanel);
   
    this.passwordField = new JPasswordField(20);
    formPanel.add(passwordField);
   
    bottomPanel.add(formPanel, BorderLayout.NORTH);

    this.loginButton = new LocalizedJButton(loginViewMessages, "login");
View Full Code Here

    rbSecurity40Bit.addActionListener(securitySelectAction);
    rbSecurity128Bit.addActionListener(securitySelectAction);

    rbSecurity128Bit.setSelected(true);

    txUserPassword = new JPasswordField();
    txConfUserPassword = new JPasswordField();
    txOwnerPassword = new JPasswordField();
    txConfOwnerPassword = new JPasswordField();

    cxAllowCopy = new JCheckBox(getResources().getString("pdfsavedialog.allowCopy")); //$NON-NLS-1$
    cbAllowPrinting = new JComboBox(getPrintingComboBoxModel());
    cxAllowScreenReaders =
        new JCheckBox(getResources().getString(
View Full Code Here

  LabelledComponent items[] = new LabelledComponent[2];

  username = new JTextField(20);
  username.addActionListener(this);
  items[0] = new LabelledComponent(acr.getString(acr.I_BROKER_USERNAME), username);
  password = new JPasswordField(20);
  password.addActionListener(this);
  items[1] = new LabelledComponent(acr.getString(acr.I_BROKER_PASSWD), password);
 
  LabelValuePanel lvp = new LabelValuePanel(items, 5, 5);
View Full Code Here

    JTextField tf_user = new JTextField("xyz");
    panel.add(tf_user);
   
    panel.add(new JLabel("Password"), BorderLayout.NORTH);
   
        JPasswordField passwordField = new JPasswordField(10);
        passwordField.setEchoChar('*');
        panel.add(passwordField, BorderLayout.CENTER);
       
        JOptionPane.showMessageDialog(
                null,
                panel,
                "Enter EMail Setup Information",
                JOptionPane.OK_OPTION);
       
        this.to = tf_to.getText();
    this.from = tf_from.getText();
    this.host = tf_host.getText();
    this.user = tf_user.getText();
    this.subject= tf_subject.getText();
        this.password = String.valueOf(passwordField.getPassword());
  }
View Full Code Here

        } catch (Throwable ex) {
            throw new RuntimeException(ex);
        }
    }
    private byte[] askKey(){
        JPasswordField password = new JPasswordField();
        JCheckBox restrictTo128Bits = new JCheckBox("Restrict key generation to 128 bits");
        final JComponent[] inputs = new JComponent[] {
                        new JLabel("Password"),
                        password,
                        restrictTo128Bits
        };
        JOptionPane.showMessageDialog(null, inputs, "Password", JOptionPane.PLAIN_MESSAGE);
        int keySize=(restrictTo128Bits.isSelected()) ? 16 : 32;
        return stringToAesKey(password.getPassword(), keySize);
    }
View Full Code Here

        mUser.addActionListener(this);
        controls.add(mUser);
        controls.add(Box.createVerticalGlue());

        mPassword = new JPasswordField("");

        mPassword.addActionListener(this);
        controls.add(mPassword);
        controls.add(Box.createVerticalGlue());
        controls.add(Box.createVerticalStrut(10));
View Full Code Here

public class UIUtils
{
    public static String getPasswordFromUser(JComponent parent)
    {
        JOptionPane j = new JOptionPane();
        JPasswordField pField = new JPasswordField();

        int ret = j.showOptionDialog(parent, pField, "Password required",
                                     JOptionPane.YES_NO_OPTION,
                                     JOptionPane.QUESTION_MESSAGE, null, null,
                                     null);

        return pField.getText();
    }
View Full Code Here

        ssl.add(temp = new JLabel(CBIntText.get("User DN") + ":  "));
        ssl.addln(managerDN = new JTextField(30));
        temp.setToolTipText(CBIntText.get("To log on as an authenticated user, enter your user dn here."));

        ssl.add(temp = new JLabel(CBIntText.get("Password") + ":   "));
        ssl.addLine(password = new JPasswordField(30));
        temp.setToolTipText(CBIntText.get("Set your user password (or SASL keystore password) here."));

        display.addLines(ssl, 3);

        OK.setToolTipText(CBIntText.get("Click here to connect using current settings."));
View Full Code Here

        tfMailReplyTo = new JTextField(25);
        tfMailTo = new JTextField(25);
        tfMailToCC = new JTextField(25);
        tfMailToBCC = new JTextField(25);
        tfAuthUsername = new JTextField(20);
        tfAuthPassword = new JPasswordField(20);
        tfSubject = new JTextField(20);
        tfAttachment = new JTextField(30);
        tfEmlMessage = new JTextField(30);

        taMessage = new JTextArea(5, 20);
View Full Code Here

TOP

Related Classes of javax.swing.JPasswordField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.