Examples of SelectAllFocusListener


Examples of org.springframework.richclient.text.SelectAllFocusListener

        JTextField textField = new JTextField();
        // Focustraversal keys moeten afgezet worden, anders wordt de keylistener niet getriggered.
        textField.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
                new HashSet<AWTKeyStroke>());
        textField.addKeyListener(createKeyListener());
        textField.addFocusListener(new SelectAllFocusListener(textField));
        textField.addFocusListener(createFocusListener());
        return textField;
    }
View Full Code Here

Examples of org.springframework.richclient.text.SelectAllFocusListener

        if (getPromptKey() != null)
            PromptSupport.setPrompt(RcpSupport.getMessage(getPromptKey()), textComponent);
        new AsYouTypeTextComponentAdapter(textComponent, valueModel, convertEmptyStringToNull);
        if(selectAllOnFocus)
        {
            textComponent.addFocusListener(new SelectAllFocusListener(textComponent));
        }
        return textComponent;
    }
View Full Code Here

Examples of se.llbit.chunky.ui.SelectAllFocusListener

      public void actionPerformed(ActionEvent e) {
        JTextField source = (JTextField) e.getSource();
        tryAccept(source.getText());
      }
    });
    sceneNameField.addFocusListener(new SelectAllFocusListener());
    JButton cancelBtn = new JButton("Cancel");
    cancelBtn.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        setVisible(false);
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.