Hello to all! I have added a jcombobox in a jpanel by dragging it from palette (Netbeans IDE). I am populating jcombobox with database without any problem. For example i have following 5 items in my jcombobox:
Italy, Uganda, America, Canada, Austria
When my jtable is focused and i type any key from key board e.g 'A', then the jcombobox filters perfectly and shows me the items: America, Austria. This is perfect working of jcombobox filtering i-e it filters the items on the base of first characters or alphabets from the left.
But I need some advance filtering for example: When i press alphabet key 'U' from the key board, then jcombobox should show me Uganda and Austria
Or when i press alphabet key 'i' from key board, then jcombobox should show me Italy, America, Austria
Or when i type substring 'er' then jcombobox should show me America
I want that my jcombobox should be filtered on any alphabet or substring which are included in items of jcombobox.
For this i have searched for internet and used sample codes and most of them uses Autocompletion of jcombobox, but all in vain. I couldn't get the solution of my problem. Is there any way or property of jcombobox so that i can get my required output?
Thanks in advance