aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Auto Complete JTextField 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 "Auto Complete JTextField" Watch "Auto Complete JTextField" New topic
Author

Auto Complete JTextField

Andraz Poje
Ranch Hand

Joined: Sep 25, 2008
Posts: 32
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

Joined: Oct 27, 2005
Posts: 19722
    
  20

Moving to our GUI forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

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

Joined: Feb 24, 2009
Posts: 127

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

Joined: Jul 26, 2007
Posts: 10451
    
    8

Did you try out Paul's suggestion? Does it work?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

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

Joined: Sep 25, 2008
Posts: 32
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

Joined: Apr 02, 2009
Posts: 90

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Auto Complete JTextField