This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Autocompletion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Autocompletion" Watch "Autocompletion" New topic
Author

Autocompletion

Rus Corina
Ranch Hand

Joined: Jul 08, 2011
Posts: 90
Hi. I am currently trying to do a small program where i have some JTextFields, and i want to somehow have an autocompletion feature (the data that i need must be taken from an sql express 2008 server). Does anyone have any idea if such a feature exists in Java? Or any suggestions on how i might do this (it involves thousands of data to search from, so it needs to be efficient).
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10269
    
    8

A quick search gave me these two topics
http://www.coderanch.com/t/486422/GUI/java/Auto-Complete-JTextField
http://www.coderanch.com/t/344365/GUI/java/JTextField-automatic-completion

This question would sit better on our UI forums. Moving.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Autocompletion