Package java.awt.event

Examples of java.awt.event.KeyAdapter


            showPopupMenu(editorPane, e);
          }
        }
      });

    editorPane.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent e) {
          setModified(true);
        }
      });
View Full Code Here


      }

      inputField.setLineWrap(true);
      inputField.setWrapStyleWord(true);
      inputField.setBorder(BorderFactory.createEtchedBorder());
      inputField.addKeyListener(new KeyAdapter() {
          public void keyTyped(KeyEvent e) {
            setModified(true);
          }
        });
View Full Code Here

                    }
                }
            }
        });
        table.addMouseListener(new PopupAdapter());
        table.addKeyListener(new KeyAdapter() {

            @Override
            public void keyReleased(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_DELETE) {
                    DataLaboratoryHelper dlh = DataLaboratoryHelper.getDefault();
View Full Code Here

    addButtonToButtonPanel(reverseButton);
  }
 
  private void initKeyListener(){
    //key listener
    thumbnailList.addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent e) {
                if((e.isAltDown())&& (e.getKeyCode() == KeyEvent.VK_UP)){
                  moveUpButton.doClick();
                } else if((e.isAltDown())&& (e.getKeyCode() == KeyEvent.VK_DOWN)){
                  moveDownButton.doClick();
View Full Code Here

            public void mouseMoved(MouseEvent event) {
                GraphCanvas.this.mouseMoved(event);
            }
        });

        this.panel.addKeyListener(new KeyAdapter() {
            @Override
            public void keyPressed(KeyEvent event) {
                GraphCanvas.this.keyPressed(event);
            }
View Full Code Here

        cmbResourceProtocol.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                updateRemoteProtocolTypeAndControls();
            }
        });
        hostIdTextField.getSwingComponent().addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
              updateDialogStatus();
            }
        });
        hostAddressTextField.getSwingComponent().addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
              updateDialogStatus();
            }
        });
View Full Code Here

        borderLayout.setVgap(5);
        borderLayout.setHgap(5);
        getContentPane().setLayout(borderLayout);

        txtServiceName = new XBayaTextField();
        txtServiceName.getSwingComponent().addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
                setServiceName(txtServiceName.getText());
            }
        });
View Full Code Here

        borderLayout.setVgap(5);
        borderLayout.setHgap(5);
        getContentPane().setLayout(borderLayout);

        txtApplicationServiceName = new XBayaTextField();
        txtApplicationServiceName.getSwingComponent().addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
                setServiceName(txtApplicationServiceName.getText());
            }
        });
View Full Code Here

        comboBox.addPopupMenuListener(this);

        if (comboBox.isEditable()) {
            Component editorComponent = comboBox.getEditor().getEditorComponent();
            final JTextField textField = (JTextField) editorComponent;
            textField.addKeyListener(new KeyAdapter() {
                @Override
                public void keyReleased(KeyEvent e) {
                    if (e.getKeyChar() != KeyEvent.CHAR_UNDEFINED && e.getKeyCode() != KeyEvent.VK_ENTER
                            && e.getKeyCode() != KeyEvent.VK_ESCAPE) {
                        String text = textField.getText();
View Full Code Here

    public void installListeners() {
        if (_comboBox != null && _propertyChangeListener != null) {
            _comboBox.addPropertyChangeListener(_propertyChangeListener);
        }

        _editorKeyListener = new KeyAdapter() {
            private boolean _deletePressed;
            private String _saveText;

            @Override
            public void keyPressed(KeyEvent e) {
View Full Code Here

TOP

Related Classes of java.awt.event.KeyAdapter

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.