Package java.awt.event

Examples of java.awt.event.FocusListener


    // mainGBC.insets = new Insets((int) parent.PADDING, (int) parent.PADDING, (int) parent.PADDING, (int) parent.PADDING);

    this.jTF_id = new JTextField(opID, 2);
    this.jTF_id.setFont(parent.getFONT());
    this.jTF_id.setEnabled(active);
    this.jTF_id.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent fe) {}

      public void focusLost(FocusEvent fe) {
        String content = that.jTF_id.getText();
View Full Code Here


    // build text field for object name...
    this.textField = new JTextField(name);
    this.textField.setFont(parent.getFONT());
    this.textField.setPreferredSize(new Dimension(this.textField.getPreferredSize().width + 100, this.textField.getPreferredSize().height));
    this.textField.addMouseListener(new RuleMouseListener(this, this.textField));
    this.textField.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent fe) {}

      public void focusLost(FocusEvent fe) {
        try {
          operator.applyChange(that.textField.getText());
View Full Code Here

      });

    textField.setText(this.constantOperator.getConstant());

    // FocusListener
    final FocusListener FL = new FocusListener() {
      @Override
      public void focusGained(final FocusEvent arg0) {

        if (ConstantPanel.this.visualRifEditor
            .getDocumentContainer()
View Full Code Here

    this.createNextTermCombo();

    this.add(this.termRowsPanel);

    // FocusListener
    final FocusListener FL = new FocusListener() {
      @Override
      public void focusGained(final FocusEvent arg0) {
        if (ListOperatorPanel.this.visualRifEditor.getDocumentContainer().getActiveDocument()
            .getDocumentEditorPane().getPrefixList().length > 0) {
          ListOperatorPanel.this.listOperator.savePrefixes();
View Full Code Here

            setToolTipText(getText());
          }
     
    });
   
    this.addFocusListener(new FocusListener() {
      public void focusGained(final FocusEvent fe) {
      }

      public void focusLost(final FocusEvent fe) {
        lock.lock();
View Full Code Here

  protected JPanel createPredicateElement(final int tmpIndex, String predicateString) {
    final JPanel panel = new JPanel(new GridBagLayout());
    panel.setOpaque(false);

    final JTextFieldResizing jtf = new JTextFieldResizing(predicateString, this.parent.getFONT(), this);
    jtf.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent fe) {}

      public void focusLost(FocusEvent fe) {
        String content = jtf.getText();
View Full Code Here

        else {
          handleConnectionMode();
        }
      }
    });
    this.textField.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent fe) {}

      public void focusLost(FocusEvent fe) {
        try {
          operator.applyChange(textField.getText());
View Full Code Here

   
    /**
     * Inicializa los listeners
     */
    private void initListeners() {
        txtAlimentoInicial.addFocusListener(new FocusListener() {
            @Override
            public void focusGained(FocusEvent e) {
            }

            @Override
            public void focusLost(FocusEvent e) {
                actualizarAlimentoInicial();
            }
           
        });
        txtAlimentoInicial.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                actualizarAlimentoInicial();
            }
        });
       
        txtDiaMaximo.addFocusListener(new FocusListener() {

            @Override
            public void focusGained(FocusEvent e) {
            }

            @Override
            public void focusLost(FocusEvent e) {
                actualizarDiaMaximo();
            }
           
        });
        txtDiaMaximo.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                actualizarDiaMaximo();
            }
        });
       
        txtAlimentoMaximo.addFocusListener(new FocusListener() {
            @Override
            public void focusGained(FocusEvent e) {}
            @Override
            public void focusLost(FocusEvent e) {
                actualizarAlimentoMaximo();
            }
        });
       
        txtAlimentoMaximo.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                actualizarAlimentoMaximo();
            }
        });
       
        txtAlimentoFinal.addFocusListener(new FocusListener() {
            @Override
            public void focusGained(FocusEvent e) {}
            @Override
            public void focusLost(FocusEvent e) {
                actualizarAlimentoFinal();
View Full Code Here

     *
     * @return a {@code FocusListener} that repaints the selecion on focus state
     *         changes.
     */
    private FocusListener createFocusListener() {
        return new FocusListener() {
            public void focusGained(FocusEvent e) {
                TableUtils.repaintSelection(ITunesTable.this);
            }

            public void focusLost(FocusEvent e) {
View Full Code Here

                }
            }
        });

        // set the focus listener
        dialog.addFocusListener(new FocusListener() {

            public void focusGained(FocusEvent event) {
            }

            public void focusLost(FocusEvent event) {
View Full Code Here

TOP

Related Classes of java.awt.event.FocusListener

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.