Examples of addFocusListener()


Examples of javax.swing.JCheckBox.addFocusListener()

    add(l);
    add(tf);
   
    l = new JLabel(Messages.getString("Fullscreen"));
    JCheckBox cb = new JCheckBox("", Settings.getPropertyBoolean(ConstantKeys.configuration_fullscreen));
    cb.addFocusListener(new FocusSettingsAdapter(ConstantKeys.configuration_fullscreen));
    cb.addItemListener(new ItemListener(){
      private GraphicsEnvironment ge_ = GraphicsEnvironment.getLocalGraphicsEnvironment();
     
      @Override
      public void itemStateChanged(ItemEvent e) {
View Full Code Here

Examples of javax.swing.JComboBox.addFocusListener()

     *  Elements
     */
    // PrefixCombo
    final JComboBox constCombo  = new JComboBox();
    constCombo.setFont(this.parent.getFONT());
    constCombo.addFocusListener(this.comboBoxFocusListener);
    constCombo.addItemListener( new ItemListener() {
      @Override
      public void itemStateChanged(final ItemEvent evt) {

           if (evt.getStateChange() == ItemEvent.SELECTED) {
View Full Code Here

Examples of javax.swing.JComponent.addFocusListener()

     * before the selection is cleared so to get the desired effect the
     * selection needs to be pushed to the event queue.
     */
    final JComponent field = getTextField();
    if (field instanceof JTextComponent) {
      field.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              ((JTextComponent) field).selectAll();
View Full Code Here

Examples of javax.swing.JEditorPane.addFocusListener()

                    }
                }
            }
        });
       
        query.addFocusListener(new java.awt.event.FocusListener() {
            public void focusGained(FocusEvent e) {
                pintaPosicion(0,(JEditorPane)e.getSource());
            }
            public void focusLost(FocusEvent e) {
            }
View Full Code Here

Examples of javax.swing.JFormattedTextField.addFocusListener()

                                nf.setMaximumFractionDigits(((Integer)hmTemp.get("DECIMAL_DIGITS")).intValue());
                            }
                            nf.setRoundingMode(RoundingMode.FLOOR);
                            jftf = new JFormattedTextField (nf);
                            jftf.setPreferredSize(dimTexto);
                            jftf.addFocusListener(flTextField);
                            jftf.addKeyListener(commandKeyListener);
                            jp2.add(jftf,BorderLayout.CENTER);
                            hmTemp.put("contenido", jftf);

                            jl = new JLabel(hmTemp.get("TYPE_NAME") + " (" + hmTemp.get("COLUMN_SIZE") + "," + hmTemp.get("DECIMAL_DIGITS") + ")");
View Full Code Here

Examples of javax.swing.JInternalFrame.addFocusListener()

                        }
                    }
                });

            schemaFrame.setFocusable(true);
            schemaFrame.addFocusListener(
                new FocusAdapter() {
                    public void focusGained(FocusEvent e) {
                        if (schemaFrame.getContentPane()
                            .getComponent(0) instanceof SchemaExplorer)
                        {
View Full Code Here

Examples of javax.swing.JPanel.addFocusListener()

    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 javax.swing.JPanel.addFocusListener()

    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 javax.swing.JPanel.addFocusListener()

    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 javax.swing.JPanel.addFocusListener()

            else {
                optionsPanel.add(nextComponent);
                optionsPanel.add(new JPanel());
            }
            if (i==0) {
                optionsPanel.addFocusListener(new FocusAdapter() {
                    public void focusGained(FocusEvent e) {
                        super.focusGained(e);
                        nextComponent.requestFocus();
                    }
                   
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.