I want to create an auto-complete program in java which should provide a list of suggestions instantly when the user types a character/String inside a JTextfield. The problem is that I am confused on how to do it.
Could somebody provide an idea or a sample on the said problem?
1) you have to sort your array before use for better performance…
2) as I mentioned you have to take these two clasess
3) don’t forget set initial value for better and nicest work with these Components
simple output
from code