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()
精彩评论