Hi,
I want to create autocomplete input (jComboBox) in desktop application.
Data to autocomplete function should be dynamically taken from database.
(There are too much data in table to load all records and put in combo box).
Do you have an idea/examples/frameworks how to solve this issue???

Signature
thanks,
lukes
Roedy Green - 29 Jun 2007 01:16 GMT
>I want to create autocomplete input (jComboBox) in desktop application.
>Data to autocomplete function should be dynamically taken from database.
>(There are too much data in table to load all records and put in combo box).
>Do you have an idea/examples/frameworks how to solve this issue???
An autocomplete that required a remote SQL lookup on every keystroke
would drive the user mad with frustration it would be so slow. You
MUST have all possibilities cached locally, even if on local hard
disk.
You would store them in a TreeMap, or in a disk based equivalent, e.g.
a local miniature SQL database.
see http://mindprod.com/jgloss/treemap.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 29 Jun 2007 01:16 GMT
>I want to create autocomplete input (jComboBox) in desktop application.
>Data to autocomplete function should be dynamically taken from database.
>(There are too much data in table to load all records and put in combo box).
>Do you have an idea/examples/frameworks how to solve this issue???
I could write you one for a fee.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jeff Higgins - 29 Jun 2007 01:23 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> box).
> Do you have an idea/examples/frameworks how to solve this issue???
<http://www.cs.mcgill.ca/~cs251/OldCourses/1997/topic7/>
Bruce Alspaugh - 29 Jun 2007 16:39 GMT
GlazedLists has autocomplete support for a JComboBox and many other
features that are useful for desktop database applications. Their
website is http://publicobject.com/glazedlists/ To watch a
demonstration, click the link for screencasts and scroll down to
AutoCompleteSupport screencasts. They have an email list if you have
any questions about it.
Bruce
Jeff Higgins - 29 Jun 2007 19:04 GMT
ellukes wrote:> Hi,
> I want to create autocomplete input (jComboBox) in desktop application.
> Data to autocomplete function should be dynamically taken from database.
> (There are too much data in table to load all records and put in combo
> box).
> Do you have an idea/examples/frameworks how to solve this issue???
<http://sujitpal.blogspot.com/2007/02/three-autocomplete-implementations.html>
Jeff Higgins - 29 Jun 2007 22:01 GMT
Jeff Higgins wrote:> ellukes wrote:> Hi,
>> I want to create autocomplete input (jComboBox) in desktop application.
>> Data to autocomplete function should be dynamically taken from database.
[quoted text clipped - 3 lines]
>>
> <http://sujitpal.blogspot.com/2007/02/three-autocomplete-implementations.html>
<http://www.orbital-computer.de/JComboBox/>