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