Examples of FocusAdapter


Examples of java.awt.event.FocusAdapter

      public void componentResized(ComponentEvent e) {
        handleFocusEvent();
      }
    });

    mContent.addFocusListener(new FocusAdapter() {
      public void focusGained(FocusEvent e) {
        handleFocusEvent();
      }
    });
View Full Code Here

Examples of java.awt.event.FocusAdapter

    panelBuilder.add(mReminderCb = new JCheckBox(mLocalizer.msg("option.remind","Automatisch an diese Sendung erinnern.")), cc.xy(1,3));
    panelBuilder.add(mCheckOnUpdateCb = new JCheckBox(mLocalizer.msg("option.checkAfterUpdate","Sofort alarmieren, wenn die Sendung nach einer Aktualisierung gefunden wird.")), cc.xy(1,5));

    mReminderCb.setSelected(FavoritesPlugin.getInstance().isAutoSelectingReminder());
    JPanel result = panelBuilder.getPanel();
    result.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent e) {
        mReminderCb.requestFocusInWindow();
      }
    });
View Full Code Here

Examples of java.awt.event.FocusAdapter

        }
      }
    });

    mContent = panelBuilder.getPanel();
    mContent.addFocusListener(new FocusAdapter() {

        public void focusGained(FocusEvent e) {
          mChannelCb.requestFocusInWindow();
        }
      });
View Full Code Here

Examples of java.awt.event.FocusAdapter

    JPanel pn = new JPanel(new FormLayout("fill:default:grow", "fill:pref:grow"));
    CellConstraints cc = new CellConstraints();
    pn.add(new JLabel(mLocalizer.msg("msg", "Die Lieblingssendung ist nun eingerichtet!"), SwingConstants.CENTER), cc.xy(1,1));
    handler.allowCancel(false);
    final WizardDlg dialog=handler.getDialog();
    pn.addFocusListener(new FocusAdapter() {

        public void focusGained(FocusEvent e) {
          dialog.focusFinish();
        }
      });
View Full Code Here

Examples of java.awt.event.FocusAdapter

    }
    else {
      mText.setBorder(BorderFactory.createLineBorder(mText.getBackground()));
    }

    mText.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        mGoOrCancelButton.setVisible(mText.getText().length() != 0 && !mText.getText().equals(SearchTextField.mLocalizer.ellipsisMsg("search","Search")));
      }
    });
View Full Code Here

Examples of java.awt.event.FocusAdapter

    CellConstraints cc = new CellConstraints();
    panelBuilder.add(new JLabel(mLocalizer.msg("saveAs", "Save as:")), cc.xy(2,1));
    panelBuilder.add(mNameTf, cc.xy(4,1));

    JPanel panel = panelBuilder.getPanel();
    panel.addFocusListener(new FocusAdapter() {
        public void focusGained(FocusEvent e) {
          mNameTf.requestFocusInWindow();
        }
      });
    return panel;
View Full Code Here

Examples of java.awt.event.FocusAdapter

      pb.addParagraph(mLocalizer.msg("parametersRecord", "Parameters for recording"));

      pb.addGrowingRow();
      mAddFormatTextField = new ParamInputField(new CaptureParamLibrary(mData), mData.getParameterFormatAdd(), false);
      mAddFormatTextField.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          addFormatChanged();
        }
      });
     
      pb.add(mAddFormatTextField, cc.xyw(2, pb.getRow(), pb.getColumnCount() - 1));
     
      pb.addParagraph(mLocalizer.msg("parametersDelete", "Parameters for deletion"));

      pb.addGrowingRow();
      mRemFormatTextField = new ParamInputField(new CaptureParamLibrary(mData), mData.getParameterFormatRem(), false);
      mRemFormatTextField.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          remFormatChanged();
        }
      });
     
View Full Code Here

Examples of java.awt.event.FocusAdapter

    };
    // Bug 5100422 on Java 1.5: Editable JComboBox won't hide popup when tabbing
    // out
    hidePopupOnFocusLoss = System.getProperty("java.version").startsWith("1.5");
    // Highlight whole text when gaining focus
    editorFocusListener = new FocusAdapter() {
      @Override
      public void focusGained(FocusEvent e) {
        highlightCompletedText(0);
      }
View Full Code Here

Examples of java.awt.event.FocusAdapter

      JRadioButton application = new JRadioButton(mLocalizer.msg("Application", "Application"));
       
      pb.add(application, cc.xy(2,3));
       
      mPathTextField.setText(mData.getProgramPath());
      mPathTextField.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          mData.setProgramPath(mPathTextField.getText());
        }
      });

      pb.add(mPathTextField, cc.xy(4,3));

      mFileButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          pathButtonPressed(e);
        }
      });

      pb.add(mFileButton, cc.xy(6,3));
       
      JRadioButton url = new JRadioButton(mLocalizer.msg("URL", "URL"));
       
      pb.add(url, cc.xy(2,5));
       
      mUrl.setText(mData.getWebUrl());
       
      mUrl.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          mData.setWebUrl(mUrl.getText());
        }
      });
View Full Code Here

Examples of java.awt.event.FocusAdapter

      mShowTitleAndTimeDialog.addActionListener(this);
      mDeleteRemovedPrograms.addActionListener(this);
      mOldPrograms.addActionListener(this);
      mUseTime.addActionListener(this);
     
      mUserName.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          mData.setUserName(mUserName.getText());
        }
      });
     
      mUserPwd.addFocusListener(new FocusAdapter() {
        public void focusLost(FocusEvent e) {
          mData.setPassword(new String(mUserPwd.getPassword()));
        }
      });
   
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.