1

I'm using the ControlsFX library to create an AutoComplete Textfield for my JavaFX application. The autocomplete function works, but the problem is that I have to type at least 1 letter (and delete it after), so I can see the drop down menu with all the possible suggestions. Is there any way to show the drop down menu of this AutoComplete TextField, just by clicking it?

This is my current code:

TextFields.bindAutoCompletion(cityTextField, citiesList);

Thank you!

Alex
  • 149
  • 1
  • 1
  • 7
  • 2
    doesn't the returned completionBinding has some api to show the popup? Anyway, it's opensource, look at how it's done and extend as needed :) And please stick to java naming conventions when showing code publicly .. – kleopatra Feb 15 '21 at 15:33
  • 1
    thanks for the edit :) – kleopatra Feb 15 '21 at 17:00
  • Solved using what you suggested, @kleopatra, thanks! – Alex Feb 24 '21 at 08:17

0 Answers0