Package java.awt.event

Examples of java.awt.event.FocusListener


    detail = new JEditorPane(ChainsawConstants.DETAIL_CONTENT_TYPE, "");
    detail.setEditable(false);

    detailPaneUpdater = new DetailPaneUpdater();

    addFocusListener(new FocusListener() {

        public void focusGained(FocusEvent e) {
            detailPaneUpdater.updateDetailPane();
        }
View Full Code Here


        previousConfigs.setMaximumSize(new Dimension(200,
                (int) previousConfigs.getPreferredSize().getHeight()));
        previousConfigs.setPreferredSize(previousConfigs.getMaximumSize());
        previousConfigs.getEditor().getEditorComponent().addFocusListener(
            new FocusListener() {
                public void focusGained(FocusEvent e) {
                    selectAll();
                }

                private void selectAll() {
View Full Code Here

      // When we did so with two internal frames open, the key stroke event
      // sometimes went to the wrong frame. This doesn't happen if we procede
      // like we do.
      // The question is, why?

      _textPane.addFocusListener(new FocusListener()
      {
         public void focusGained(FocusEvent e)
         {
            registerKeyStrokes();
         }
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

            getActivity().setName(description);
          }
        };
       
        labelEditor.addFocusListener(new FocusListener(){
          public void focusGained(FocusEvent arg0) {
          }
          public void focusLost(FocusEvent arg0) {
            onEditDone.actionPerformed(null);           
          }
View Full Code Here

           
            switchActivity.setExtendedAttribute("conditionDescriptions_" + where, conditionDescription);
          }
        };
       
        labelEditor.addFocusListener(new FocusListener(){
          public void focusGained(FocusEvent arg0) {
          }
          public void focusLost(FocusEvent arg0) {
            onEditDone.actionPerformed(null);           
          }
View Full Code Here

    getContentPane().add("South", buttonPanel);

    pack();
    setModal(true);

    addFocusListener(new FocusListener(){
      public void focusGained(FocusEvent e) {
      }
      public void focusLost(FocusEvent e) {
        dispose();
      }
View Full Code Here

      public void mouseReleased(MouseEvent arg0) {
      }
         
        });
        sb.addFocusListener(new FocusListener(){

      public void focusGained(FocusEvent arg0) {
        scrolling = true;
      }
View Full Code Here

          getModelItem().setPath( getText( document ) );
          updating = false;
        }
      }
    } );
    pathTextField.addFocusListener( new FocusListener()
    {
      public void focusLost( FocusEvent e )
      {
        for( String p : RestUtils.extractTemplateParams( getModelItem().getPath() ) )
        {
View Full Code Here

    });
  }
 
  /**  Add focus listener to set the location of the caret to the right place */
  private void addFocusListenerToField(final JFormattedTextField field) {
    field.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        if(mCaretPosition == -1) {
          if(mStartIndexChar != '\0') {
            mCaretPosition = field.getText().indexOf(String.valueOf(mStartIndexChar)) + 1;
          } else if(mStartPosition != -1) {
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.