Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+21 votes
asked in CSC305 Fall 2023 by (1 point)

3 Answers

+5 votes

To add an autocomplete feature, to the app you could try adding the external library org.controlsfx.controls, which will allow you to use AutoCompletionBinding.
You could follow more instructions on https://youtu.be/SkXYg3M0hOQ?si=4mvqcwuB-B0TTLiD

answered by (2.1k points)


+5 votes

You can attach a listener to the text property of the search field that will help you to react to changes in the input as the user types. Then you can use simple string comparison and Update the UI dynamically as the user types.

answered by (1 point)
+4 votes

Right now, our code is kinda janky but our search bar works by creating a string of all the components a card has and then using a contains() on that string. It is fully functional though

answered by (1 point)