Example usage for javafx.scene.control TextField getSelection

List of usage examples for javafx.scene.control TextField getSelection

Introduction

In this page you can find the example usage for javafx.scene.control TextField getSelection.

Prototype

public final IndexRange getSelection() 

Source Link

Usage

From source file:com.bekwam.mavenpomupdater.MainViewController.java

@FXML
public void toolBarMouseReleased(MouseEvent evt) {

    TextField tf = (TextField) evt.getSource();
    String selectedText = tf.getSelectedText();
    IndexRange selectedRange = tf.getSelection();

    toolBarDelegate.updateToolBarForClipboard(tf, selectedText, selectedRange);
}