Skip to main content

JGoodies is blocking my action events from firing



I added an actionListener to my JTextField. The JTextField is creating by JGoodies and is buffered. If I change the value in my JTextField and hit enter on it, it fires my event. If I change the value, lose focus, come back and then hit enter, no event fires. Has this happened to anybody else? Any suggestions would be welcome, I am really stuck...







ValueModel valueModel = getValueModel(adapter, propertyName, useBuffer);

JTextField textField = BasicComponentFactory.createLongField(valueModel);







I add an actionListener to it. It works if I change the value and then hit enter. If I change the value, lose focus, and then regain focus and hit enter, the action does not fire, which is unexpected.


Comments

Popular posts from this blog

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.