-1

I am new in programming so i can't use databases or anything...

Can You please Help me to do this by The data saved in string.i want TextField to show predictions like google it the data matches the data already given in string.

Abhishek kumar
  • 4,347
  • 8
  • 29
  • 44
  • Have a look at https://stackoverflow.com/questions/36861056/javafx-textfield-auto-suggestions – TM00 Feb 17 '18 at 08:18
  • All over the map sir. can You explain in some easy method? – Muhammad Musharaf Feb 17 '18 at 09:07
  • There really is no "easy" method to achieve this. The best you could do is, as the other answer of that question suggests, is to use the ControlsFX library's version. – TM00 Feb 17 '18 at 09:11

1 Answers1

0

If you'd like a quick solution. Use ControlsFX's autocomplete TextField (taken from this answer).

TextFields.bindAutoCompletion(textfield,"text to suggest", "another text to suggest");

Just download and add the controlsFX jar to your build path. Or you could use the maven dependency as in the answer I referenced.

TM00
  • 1,330
  • 1
  • 14
  • 26