is it possible to get complete name in Jtextfield , let say user types letter 'B' , he should get all the name start from B for e.g Buonarotti & Company ,Bitter Homes & Gardens in text box in GUI.
if he types letter 'S' ,he should get all the name start from S for e.g Swanders & Flaughn in text box.
is it doable in swing?
posted 8 years ago
in my opinion it is possible, you have to attach a changeListener with this textfield and then in action method you have to fetch the text from textfield.
then you have to call a traverse an array of dictionary for words and dynamically fetch all those words whose starting character is the same with one of the user input starter.
if you need further assistance then feel free to ask.
Also search on "auto complete" and "intellisense". ok because these two terms are used for your problem
i am Java +ve Now !
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads