title: How perform task on JavaFX TextField at onfocus and outfocus?
body: <p>I am working on JavaFX project. I need to perform some task on a JavaFX <code>TextField</code>.</p>
  
  <p>For example on the  "on focus" event for the <code>TextField</code> I want to print</p>
  
  <pre><code>System.out.println("Textfield on focus");
  </code></pre>
  
  <p>and on the "out focus" event it should print</p>
  
  <pre><code>System.out.println("Textfield out focus");
  </code></pre>