This is for assignment, so the answers should not contain code written for me.
I wrote a program that is essentially an autocomplete program. He takes the floor and returns the best matches.
I am trying to write the front end for it in swing (which I have no experience) and I want my interface to do the following: I want the input field to be constantly read for user input, passing this value to another program, and immediately return matches to drop-down list like, say, google. It seems I canβt find any information on how to do this, all introductory tutorials use the submit button.
Can someone explain to me how this will be done, or point me to a resource that could explain this? Again, please do not write the code for me, I do not want to unwittingly deceive my task.
source share