Package javax.swing

Examples of javax.swing.JPasswordField.addActionListener()


                                             SimpleAttributeSet.EMPTY);
            }
            passwordField.setDocument(document);

            // ActionPerformed
            passwordField.addActionListener(new ActionListener() {

                public void actionPerformed(final ActionEvent event) {
                    view.actionPerformed(event);
                }
View Full Code Here


        entryBox.setForeground(foreground);
        _addPair(name, lbl, entryBox, entryBox);

        // Add the listener last so that there is no notification
        // of the first value.
        entryBox.addActionListener(new QueryActionListener(name));

        // Add a listener for loss of focus.  When the entry gains
        // and then loses focus, listeners are notified of an update,
        // but only if the value has changed since the last notification.
        // FIXME: Unfortunately, Java calls this listener some random
View Full Code Here

                                             SimpleAttributeSet.EMPTY);
            }
            passwordField.setDocument(document);

            // ActionPerformed
            passwordField.addActionListener(new ActionListener() {

                public void actionPerformed(final ActionEvent event) {
                    view.actionPerformed(event);
                }
View Full Code Here

        userIdField.addActionListener(ProxyActionListener.create(stateMgr, "onUserIdAction"));
       
        JPasswordField passwdField = view.getPasswordField();
        passwdField.getDocument().addDocumentListener(ProxyDocumentListener.create(stateMgr, "checkButtons"));
        IMEControl.setImeOffIfFocused(passwdField);
        passwdField.addActionListener(ProxyActionListener.create(stateMgr, "onPasswordAction"));
       
        //
        // ボタンに ActionListener を登録する
        //
        view.getSettingBtn().addActionListener(ProxyActionListener.create(this, "doSettingDialog"));
View Full Code Here

                                             SimpleAttributeSet.EMPTY);
            }
            passwordField.setDocument(document);

            // ActionPerformed
            passwordField.addActionListener(new ActionListener() {

                public void actionPerformed(final ActionEvent event) {
                    view.actionPerformed(event);
                }
View Full Code Here

                                             SimpleAttributeSet.EMPTY);
            }
            passwordField.setDocument(document);

            // ActionPerformed
            passwordField.addActionListener(new ActionListener() {

                public void actionPerformed(final ActionEvent event) {
                    view.actionPerformed(event);
                }
View Full Code Here

              tf.setColumns(size);
            else
              tf.setColumns(20);
            if (model != null)
              tf.setDocument((Document) model);
            tf.addActionListener(this);
            comp = tf;
            maxIsPreferred = true;
          }
        else if (type.equals("radio"))
          {
View Full Code Here

              tf.setColumns(size);
            else
              tf.setColumns(20);
            if (model != null)
              tf.setDocument((Document) model);
            tf.addActionListener(this);
            comp = tf;
            maxIsPreferred = true;
          }
      }
    else if (tag == HTML.Tag.TEXTAREA)
View Full Code Here

    Action okAction = new AbstractAction("OK") {
      public void actionPerformed(ActionEvent e) {
        input.dispose();
      }
    };
    textField.addActionListener(okAction);
    JButton ok = new JButton(okAction);
    input.add(ok);
    input.pack();
    input.setLocationRelativeTo(mainWindow);
    input.setVisible(true)// BLOCKING
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.