0

i am trying to put a dropdown JComboBox in my application with autocompletion.

I already managed to do the autocompletion part but it only works with the first letters, so if i type "fre" it gives me "Fresas del Pacifico" that is OK

What i need is to be able to type "Paci" and also get "Fresas del Pacifico"

example

i am using AutoCompleteDecorator.decorate(comboBoxCliente);

Any ideas? or 3rd party libs?

thanks

Mario Jaramillo
  • 567
  • 6
  • 9

1 Answers1

1

you can look into

http://www.java2s.com/Code/Java/Swing-Components/AutocompleteComboBox.htm

or

http://www.algosome.com/articles/java-jcombobox-autocomplete.html

or

JComboBox autocomplete

Community
  • 1
  • 1
Md Ayub Ali Sarker
  • 10,795
  • 4
  • 24
  • 19
  • Those solutions are not what i'm looking for, cause it only autocompletes the text from the begining. I need to be able to "search" the substring at any part of the jcombobox items, not only from the begining – Mario Jaramillo Sep 15 '16 at 17:38