title: Get Focus at first control in javafx
body: <p>my layout like :</p>
  
  <p><img src="https://i.stack.imgur.com/MVqA9.png" alt="enter image description here"></p>
  
  <p>i want focus at Company Name Texfield  when i press TAB button at first time , but right now i get focus at Add Button how can i manage it ? </p>
  
  <p>i try code like</p>
  
  <pre><code>    ChangeFocus(mTextFieldCompanyName, mTextAreaAboutUs);
      ChangeFocus(mTextAreaAboutUs, mTextAreaContactUs);
      ChangeFocus(mTextAreaContactUs, mButtonVideo);
      ChangeFocus(mButtonVideo, mButtonImage);
      ChangeFocus(mButtonImage, mButtonSave);
      public void ChangeFocus(Control mControlFrom,final Control mControlTo)
      {
  
     mControlFrom.addEventHandler(KeyEvent.KEY_PRESSED, new EventHandler&lt;KeyEvent&gt;() {
  
           @Override
           public void handle(KeyEvent event)
           {
               if (event.getCode() == KeyCode.TAB)
               {
                  System.out.println("TAB pressed");
                  mControlTo.requestFocus();
                  event.consume(); // do nothing
           }
         }
       });
  
       }
  </code></pre>