3

I am currently working on a JavaFX project with Mongo DB as backend. I want to add a textfield which autocompletes typed text with suggestions. How can I do this?

enter image description here

Stevoisiak
  • 16,510
  • 19
  • 94
  • 173
Durai Gowthaman
  • 83
  • 2
  • 13
  • 1
    Have a look at AutoComplete TextFields from [ControlFX](http://fxexperience.com/controlsfx/features/#textfields). A guide for the same can be found [here](http://kaykovus.blogspot.in/2015/01/how-to-use-controlsfx-autocomplete.html). – ItachiUchiha Mar 30 '16 at 07:42
  • Thank you @ItachiUchiha how to use document listener in javafx – Durai Gowthaman Jun 03 '16 at 05:31
  • 1
    Does this answer your question? [JavaFX TextField Auto-suggestions](https://stackoverflow.com/questions/36861056/javafx-textfield-auto-suggestions) – trilogy Aug 27 '20 at 16:11

1 Answers1

5

Use ControlsFX 8.0.5 jar in program

 TextFields.bindAutoCompletion(textfield id,"text to suggest");
Durai Gowthaman
  • 83
  • 2
  • 13