Examples of addFocusListener()


Examples of javax.swing.JTextField.addFocusListener()

                    public void focusLost(FocusEvent e) {
                        setLLCoordinate((JTextField) e.getSource(), 0);
                    }
                });
                tf = PaletteHelper.createTextEntry("lon", "" + llpts[1], pop);
                tf.addFocusListener(new FocusAdapter() {
                    public void focusLost(FocusEvent e) {
                        setLLCoordinate((JTextField) e.getSource(), 1);
                    }
                });
            }
View Full Code Here

Examples of javax.swing.JTextField.addFocusListener()

                });
            }

            if (rt != OMGraphic.RENDERTYPE_LATLON) {
                tf = PaletteHelper.createTextEntry("off_x", "" + xypts[0], pop);
                tf.addFocusListener(new FocusAdapter() {
                    public void focusLost(FocusEvent e) {
                        setXYCoordinate((JTextField) e.getSource(), 0);
                    }
                });
                tf = PaletteHelper.createTextEntry("off_y", "" + xypts[1], pop);
View Full Code Here

Examples of javax.swing.JTextField.addFocusListener()

                    public void focusLost(FocusEvent e) {
                        setXYCoordinate((JTextField) e.getSource(), 0);
                    }
                });
                tf = PaletteHelper.createTextEntry("off_y", "" + xypts[1], pop);
                tf.addFocusListener(new FocusAdapter() {
                    public void focusLost(FocusEvent e) {
                        setXYCoordinate((JTextField) e.getSource(), 1);
                    }
                });
            }
View Full Code Here

Examples of javax.swing.JTextField.addFocusListener()

    private JTextField createTextF( JTextField prevTextField )
    {
        IPDocument doc = new IPDocument();
        JTextField field = new JTextField( doc, null, 3 );
        field.addFocusListener( textFieldFocusHandler );
        field.setBorder( null );
        field.setHorizontalAlignment( JTextField.CENTER );

        if ( prevTextField != null )
        {
View Full Code Here

Examples of javax.swing.JViewport.addFocusListener()

      public void stateChanged(ChangeEvent e) {
        updateSyntaxHighlighting(false);
      }
    });

    viewport.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        updateSyntaxHighlighting(false);
      }

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

Examples of javax.swing.text.JTextComponent.addFocusListener()

        Font font = (new JTextField()).getFont();
        setFont(font);
        text.setFont(font);
       
        text.addFocusListener(
            new FocusListener() {
                public void focusGained(FocusEvent e) {
                    JTextComponent text = (JTextComponent) e.getSource();
                    text.selectAll();
                }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.util.JTextFieldResizing.addFocusListener()

    // 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());
        FrameOperatorPanel.this.updateSize();
        }});
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.HintTextFieldResizing.addFocusListener()

    // 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());
        FrameOperatorPanel.this.updateSize();
        }});
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControl.addFocusListener()

      fTextViewer.addViewportListener(this);
     
      IInformationControl fInformationControlToClose= getCurrentInformationControl2();
      if (fInformationControlToClose != null)
        fInformationControlToClose.addFocusListener(this);

      fDisplay= fSubjectControl.getDisplay();
      if (!fDisplay.isDisposed()) {
        fDisplay.addFilter(SWT.MouseMove, this);
        fDisplay.addFilter(SWT.FocusOut, this);
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.addFocusListener()

          e.doit = false;
        }
      }
    });

    comboBox.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        ComboBoxViewerCellEditor.this.focusLost();
      }
    });
    return comboBox;
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.