开发者

Java EventHandler for a TexBox that Acts Whenever any Letter is Pressed?

开发者 https://www.devze.com 2023-03-30 00:29 出处:网络
I have a variable that I want to write to from a textbox, but I want it to be written to automatically when the user types the text into it...Is the开发者_如何学编程re an EventHandler to do this, or d

I have a variable that I want to write to from a textbox, but I want it to be written to automatically when the user types the text into it... Is the开发者_如何学编程re an EventHandler to do this, or do I have to do something different?


I believe you can use a Key Listener for that:

Key Listener

Go ahead and add a key listener to your textfield.

0

精彩评论

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