Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying possible (user intended) Strings as suggestions in a JList  RSS feed

 
Mansoor Akhtar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to display (user intended) Strings in some sort of a JList (or something ) when user types in a JTextField as possible suggestions. We do witness the same behavior in many email clients like Gmail when we start typing an email address. Can anyone please guide me how can I achieve this in Java applications. I want it to be like all possible options (based on some soundex algorithm) so that the user could choose on of the strings.
Thanks in advance.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are many examples here and google, search keywords

autocomplete JTextField (and/or JComboBox)
 
Mansoor Akhtar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
I have found a good example at: http://www.codeguru.com/forum/showthread.php?t=477880
 
Campbell Ritchie
Marshal
Posts: 55681
162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!