开发者

What is best control in Java for simple editor

开发者 https://www.devze.com 2023-02-25 13:24 出处:网络
I need to implement light editor ( recognize part of key words, syntax highli开发者_JAVA百科ght and suggest all of word in dropdown list if user type part with same prefix). What is best control in Ja

I need to implement light editor ( recognize part of key words, syntax highli开发者_JAVA百科ght and suggest all of word in dropdown list if user type part with same prefix). What is best control in Java for this task ?


You can go through the Java Tutorial - Using Text Components along with the examples page.


You could use JEditTextArea as a start point.


I recommend to reuse the editor of NetBeans or Eclipse.

http://wiki.netbeans.org/How_to_create_support_for_a_new_language

http://platform.netbeans.org/tutorials/nbm-code-completion.html

http://netbeans.org/kb/trails/platform.html

0

精彩评论

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