Today, the headache is very bad, but the temper is very good, but it is okay, and the problem that appeared on the editor yesterday was resolved. As mentioned in (1), the highlight of the key is completed (although I want to be very efficient). Then the next question is how to mark the keyword when the user is edited. When I started, I felt very simple. I didn't think about it. The corresponding JeditorPane's text change time will change the MO problem. As a result, JeditorPane could not be able to correspond to this event. So finally in the cursor event (CARTEEVENTS). One of the questions that follows is that tags that need to override EditorPane in this event response, then CareTevent will be activated. This is not a problem, and Disableevents is when the event is corresponding. Yes, but not (you can disableawtevent, but swings, no), if you can, do this brother. So yesterday was depressed for a day. The final use method is that when the corresponding event, first put the Apater of the event to Remove, and finally installed, the results prove it. But there is another problem, calling JeditorPane's setText method error in the corresponding method, if it is no problem, if the text changes, it is wrong. The reason is not known, it is estimated that the start between the thread has a relationship, the solution is to use a multi-threaded inside class and use it to setText. Now I look at my editor, it is really a bad thing. I started to do a grammar check, saying that it is a grammar check, but I think it should be a parentheses match problem, because I can't read .h file, no Built-in compiler. Continue to work hard ...