File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto Complete JTextField

 
Andraz Poje
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I found some code but I do not know how to use it:
http://www.java2s.com/Code/Java/Swing-JFC/AutocompleteTextField.htm
How do I use this code?
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our GUI forum.
 
Paul Clapham
Sheriff
Pie
Posts: 20171
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You provide a list of the possible strings which are the targets of autocompletion, then pass that list to an instance of the class:
 
Piyush Patel
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Andraj,
i found same problem ..
i think we should attach searching kind of thing to JTextField , instead of extending jTextField ..
does any one have idea on this?
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try out Paul's suggestion? Does it work?
 
Piyush Patel
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, all i found very easy and effective Auto Complete Text Field at jSuggest Text Field - Search as you type
hope this will help all ranchers.

 
Andraz Poje
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Piyush Patel wrote:hi, all i found very easy and effective Auto Complete Text Field at jSuggest Text Field - Search as you type
hope this will help all ranchers.

It Works! Thanks.
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Piyush Patel wrote:hi, all i found very easy and effective Auto Complete Text Field at jSuggest Text Field - Search as you type
hope this will help all ranchers.



Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic