Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2007

Tip: Looking for answers? Try searching our database.

jComboBox with autocomplete from database

Thread view: 
ellukes - 28 Jun 2007 14:10 GMT
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/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.