Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto complete textbox in Java Swing

Tags:

java

swing

Is there any good ready made Java Swing component that can be used to implement auto complete textbox?

like image 360
Sudar Avatar asked Dec 07 '09 18:12

Sudar


2 Answers

Here's an example on autocompletion without a drop down selection. It will only autocomplete for you when a unique match is found. The completion is auto inserted into the text field and selected. Kind of similar as to how Safari's address field works.

The solution could be expanded to provide a list of options, however that was not part of my requirements when doing this.

UPDATE

I lost the domain with the original code. It can now be accessed on github: https://github.com/sasjo/autocomplete

like image 90
Samuel Sjöberg Avatar answered Oct 04 '22 02:10

Samuel Sjöberg


There is a claim that JIDE-OSS has the feature that you are requesting. That is what this forum claims, however I have not tried it.

like image 25
monksy Avatar answered Oct 04 '22 00:10

monksy