List of usage examples for javafx.scene.control TextField getSelection
public final IndexRange getSelection()
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); }