Hi, i have implemented ListDataIntelliHints to display a list of items when a user types into a jTextField. This is working great using this:
ListDataIntelliHints searchBox = new ListDataIntelliHints(searchField, hintsList);
searchBox.setCaseSensitive(false);
However, the matches only occur if the users knows the exact start of the phrase, or at least the first letter(s).
is there any way that i am able to set the search to a "contains" type action so that if the user types in any part of any word then it will provide a list?
eg: user types in "Red"
That will only match any phrase starting with red. I would like it to be able to match any phrase that contains that string, like "The Ball is Red", " The Shoe is Red", "I live in Redding" should all be returned in the list of matches.
Is this possible with the current implementation?
Thanks very much.