How do I add spell checking to a JTextArea?

£可爱£侵袭症+ 提交于 2019-12-05 05:49:16

You could implement your own spell checker using a dictionary (can get quite large depending on languages you support), then distance metrics are calculated from the words in the text box to the dictionary. Underlining can be done using font styling, there as applet based sample here.

Jaspell is a Java implementation of the popular Aspell. In there are some explantions of the search algorithms used.

As mentioned previously Jazzy is also great and IBM provides a nice tutorial.

I haven't tried this before, but I came across it a little while ago: http://sourceforge.net/projects/jazzy/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!