开发者

How to find out if JTextArea is activated?

开发者 https://www.devze.com 2023-02-28 22:48 出处:网络
I want to write a text editor using Jav开发者_如何转开发a, so I have a question about JTextArea. I want my program to say when text area is activated and some key is pressed. How can I do that?About c

I want to write a text editor using Jav开发者_如何转开发a, so I have a question about JTextArea. I want my program to say when text area is activated and some key is pressed. How can I do that?


About catching keys try: JTextField.addKeyListener()

About Focus: JTextField.addFocusListener()

0

精彩评论

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