开发者

How to find out if JTextArea is activated?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜