File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Autocomplete feature for JCombobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Autocomplete feature for JCombobox" Watch "Autocomplete feature for JCombobox" New topic

Autocomplete feature for JCombobox

Nirmal Mukundan
Ranch Hand

Joined: Feb 21, 2007
Posts: 37


I have a Screen in which there are multiple Jcomboboxes. I have a requirement to make these combo boxes editable and autocomplete.

I searched for many examples and finally got the solution

Since I have multiple Jcomboxes, how will I be able to use the same DocumentListener for 2 combobxes.
For eg: The method does not have a way to identify 2 different components.

Please help to resolve the issue of making 2 comboxes autocomplete in the same screen.

I agree. Here's the link:
subject: Autocomplete feature for JCombobox
It's not a secret anymore!