Hi,
I am trying to get an action event on TextField similar to "onblur" functionality in html.
I tried by declaring the setOnAction() method. But this is getting called only if I pressed the "enter" button.
Actually I want the event to fire as soon as on tab-out or the focus is out from the text field.
The code I am trying with is..
Text text = new TextField();
text.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent arg0) {
System.out.println( text.getText() );
}
});