aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to implement JTextField with auto-complete property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to implement JTextField with auto-complete property" Watch "How to implement JTextField with auto-complete property" New topic
Author

How to implement JTextField with auto-complete property

Bharvi Dixit
Greenhorn

Joined: Feb 14, 2013
Posts: 20
Hello all,
I want to know that how to implement auto-completion functionality in swing JTextField while typing ((Like Google Search). The suggested data should be fetched from database. For example if i have table of employee than while entering employee name in textfield the name starting with similar letter should be suggested.
Please help.

Thanks in advance.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2316
    
  49
You could check out the JIDE common layer library which has a pluggable auto-complete feature in it. The library is open source.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement JTextField with auto-complete property