Package java.awt.event

Examples of java.awt.event.FocusAdapter


    };
  }


  protected FocusListener createFocusListener() {
    return new FocusAdapter() {
      @Override
      public void focusGained(final FocusEvent e) {
        _searchActivated = true;
      }
View Full Code Here


    private void initUI() {
        table = new JTable(model);
        TableColumn column = table.getColumnModel().getColumn(1);
        column.setCellEditor(new DefaultCellEditor(new JTextField()));
       
        table.addFocusListener(new FocusAdapter() {
            public void focusLost(FocusEvent evt) {
                tableFocusLost(evt);
            }
        });
View Full Code Here

        {
          dateChooserPanel.setDate((Date) evt.getNewValue(), false);
          dateChooserPanel.setDateSelected(true);
        }
      });
      dateField.addFocusListener(new FocusAdapter()
      {
        public void focusGained(final FocusEvent e)
        {
          dateChooserPanel.setDateSelected(false);
        }
View Full Code Here

                @Override
                public void keyReleased(KeyEvent e) {
                    setExecutablePath(txtExecPath.getText());
                }
            });
            txtExecPath.getTextField().addFocusListener(new FocusAdapter() {
              @Override
              public void focusLost(FocusEvent e) {
                super.focusLost(e);
                updateTempDirWithExecPath(txtExecPath.getText());
              }
View Full Code Here

                @Override
                public void keyReleased(KeyEvent e) {
                    setExecutablePath(txtExecPath.getText());
                }
            });
            txtExecPath.getTextField().addFocusListener(new FocusAdapter() {
              @Override
              public void focusLost(FocusEvent e) {
                super.focusLost(e);
                updateTempDirWithExecPath(txtExecPath.getText());
              }
View Full Code Here

    cbName.addItemListener(ilName);

    // TextField
    final JTextFieldResizing tf = new JTextFieldResizing(this.unitermOperator.getTermName(), this.parent.getFONT(), this);

    tf.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        UnitermOperatorPanel.this.setFactName(tf.getText());
      }
    });
View Full Code Here

    term.setNameComboBox(namedConstCombo);

    // TextField Name
    final JTextFieldResizing tfName = new HintTextFieldResizing("Name",
        "Name", this.parent.getFONT(), this);
    tfName.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setTfName(tfName);
        }});

    // TextField Value
    final JTextFieldResizing tfValue = new HintTextFieldResizing("Value", "Value", this.parent.getFONT(), this);
    tfValue.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setValue(tfValue.getText());
        }});
    // Label
View Full Code Here

    term.setNameComboBox(namedConstCombo);

    // TextField Name
    final JTextFieldResizing tfName = new HintTextFieldResizing("Name",
        "Name", this.parent.getFONT(), this);
    tfName.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setTfName(tfName);
        }});

    // TextField Value
    final JTextFieldResizing tfValue = new HintTextFieldResizing(term.getValue(), "Value", this.parent.getFONT(), this);
    tfValue.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setValue(tfValue.getText());
        }});
View Full Code Here

            }
            } );
    term.setNameComboBox(namedConstCombo);
    // TextField Name
    final JTextFieldResizing tfName = new HintTextFieldResizing("Name", "Name", this.parent.getFONT(), this);
    tfName.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setTfName(tfName);
        }});

    // TextField Value
    final JTextFieldResizing tfValue = new HintTextFieldResizing("Value", "Value", this.parent.getFONT(), this);

    tfValue.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setValue(tfValue.getText());
        }});
View Full Code Here

            }
            } );
    term.setNameComboBox(namedConstCombo);
    // TextField Name
    final JTextFieldResizing tfName = new HintTextFieldResizing("Name","Name", this.parent.getFONT(), this);
    tfName.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setTfName(tfName);
        }});

    // TextField Value
    final JTextFieldResizing tfValue = new HintTextFieldResizing(term.getValue(), "Value", this.parent.getFONT(), this);
    tfValue.addFocusListener(new FocusAdapter() {
      @Override
      public void focusLost(final FocusEvent fe) {
        term.setValue(tfValue.getText());
        }});
View Full Code Here

TOP

Related Classes of java.awt.event.FocusAdapter

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.