• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement JTextField with auto-complete property

 
Bharvi Dixit
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2965
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could check out the JIDE common layer library which has a pluggable auto-complete feature in it. The library is open source.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic