JCombo AutoComplete - Pattern or Reverse Lookup

I'm using the auto-complete decorator in the swingx library:

AutoCompleteDecorator.decorate( myComboBox );

Which is pretty sweet. However, it only searches forward from the start of the typed text.

So if my combo contains: [Apple, Banana, Grape, Orange] typing 'an' in "strict" mode will not show any results. In non-strict mode nothing is searched either. I'd like it to match 'Banana' & 'Orange' since both items contain my typed text.

Are there any auto-complete libraries that allow for this type of functionality? I would think a strategy approach would work best here, but I'm not finding anything applicable. I'm fine with extending existing functionality - so long as I'm not reinventing the wheel.

Thanks in advance!

6
задан mKorbel 16 May 2011 в 17:15
поделиться