2 我不确定,因为我相信JTextArea只能直接支持单一颜色的单一字体。 根据SyntaxHighlighter Class的文章,JTextPane是最好的选择。 来源 2008-10-31 07:51:21 VonC
6 这里有一些其他的选择,你可以尝试 http://ostermiller.org/syntax/editor.html http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html http://fifesoft.com/rsyntaxtextarea/ http://code.google.com/p/jsyntaxpane/ 来源 2008-11-01 16:29:10