开发者

Listeners on JxSearchPanel

开发者 https://www.devze.com 2023-01-13 13:13 出处:网络
Do you have a solution to implement a listener wit开发者_StackOverflow社区h jXSearchPanel to be able to execute some code when users adds text on the search field?

Do you have a solution to implement a listener wit开发者_StackOverflow社区h jXSearchPanel to be able to execute some code when users adds text on the search field?

I searched within javadoc but I can't find what I'm looking for.


I don't know anything about JXSearchPanel, but I would guess the panel uses (or extends) a regular JTextField. If this is the cause then you can just add a DocumentListener to the Document of the text field.

Read the section from the Swing tutorial on How to Write a Document Listener for a working examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消