Skip to main content

DocumentListener issues with AutoComplete

1 reply [Last post]
aixjava
Offline
Joined: 2010-09-13

Hi,

I have a question about the possible interactions between the Swingx Autocomplete mechanism and a DocumentListener I added on the same text field.

I am adding Autocomplete to my JTextField through the classical code:

autofilteradaptor=new TextComponentAdaptor(this,oldchoices);
autocompletedocument = new AutoCompleteDocument(autofilteradaptor,false);
AutoCompleteDecorator.decorate(this,autocompletedocument, autofilteradaptor);

However, then, the DocumentListener I added to the field does not work anymore.

Anyone encountered this problem ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08

There was an old bug about DocumentListeners. What version of SwingX are you using?

Karl