English 中文(简体)
我的应用程序如何使用JEditTextArea,有教程吗?
原标题:
  • 时间:2009-03-19 03:57:09
  •  标签:

我正在尝试将JEditTextArea嵌入到我的应用程序中,可以在这里找到: http://syntax.jedit.org/

我想知道是否有一个明确的指南来完成这个任务?我在使用这些包时遇到了问题,也不确定该如何将它们导入到我的项目中。如果有人已经解决了这个问题,或者有更好的解决方案来实现我的应用程序的语法高亮,任何帮助都会非常感激。

谢谢。

问题回答

This extra package seems to be dead since 2002. I was not even aware this exists as separate project. If you want to embed the JEditTextArea, you should use the recent version. For this you would have to take the source distribution and call "ant build-textArea" which should produce the independent TextArea to be embedded in other projects.

如果您正在使用Swing,那么也许StyledDocument适合您?我在应用程序中使用它进行语法高亮,这相对容易。





相关问题
热门标签