title: Auto suggestion in text field with data from Google API
body: <p>I want to make an autocomplete text field with suggestions where data is from the Google API - updated after each new key pressed.
  For now, I have a method that downloads 5 suggestions and updates them when another key is pressed.</p>
  
  <p>I've tried <code>AutoCompleteTextField</code> from Gluon, but it didn't work out well. </p>
  
  <pre class="lang-java prettyprint-override"><code>public class Controller {
      Weather weather = new Weather();
      GooglePlaces googlePlaces = new GooglePlaces();
  
      @FXML
      AutoCompleteTextField&lt;String&gt; autoCompleteTextField = new AutoCompleteTextField&lt;&gt;();
  
      @FXML
      public void setAutoComplete() throws IOException {
          ArrayList&lt;String[]&gt; places = googlePlaces.predictPlaces("New yo");
  
          autoCompleteTextField.setCompleter(s -&gt; {
              ArrayList&lt;String&gt; autoplaces = new ArrayList&lt;&gt;();
              for (int i = 0; i &lt; places.size(); i++) {
                  autoplaces.add(places.get(i)[0]);
              }
              System.out.println("test");
              return autoplaces;
          });
      }
  }
  </code></pre>
  
  <p>Here I tried to add 5 suggestions from <code>"New yo"</code> phase without updating after each new key, but it didn't work either as it doesn't show anything. <code>"test"</code> isnt printed in the console.</p>