JTextArea 实时拼写检查器
我需要一个好的 Java 拼写检查器库,它可以实时检查 JTextArea(或任何 JTextComponent)的拼写。也就是说,当用户键入时,文本下方应该出现红色波浪下划线。
它需要能够通过左键单击(是的,左键单击)单词来列出所有可用的单词替换。如果不行的话,右键单击也可以。
它需要有一个“全部忽略”,但不能有“添加”、“忽略”或任何其他。全部忽略即可。
理想情况下,您应该能够更改下拉框的外观,至少在某种程度上。
不需要用户拼写检查器。也就是说,我不需要一个按钮,当您单击它时会弹出拼写检查对话框,我只需要实时检查。我实际上已经有了一个拼写检查对话框库。
如果有人可以推荐一个好的库(我愿意为此付费),或者更好的是,首先解释一下对文本区域执行此操作的好方法,那就太好了。
至少,如果有人可以解释如何根据我的字典检查 JTextArea 并在单击时添加红色下划线和下拉菜单或任何这些步骤,那将是一个很好的开始。
感谢您的潜在帮助。
I need a good spell checker library for Java that can spell check a JTextArea (or any JTextComponent) in real time. That is, it should have a wavy red underline appear under text while the user is typing.
It needs to be able to list all the available word replacements by left clicking (yes, left clicking) the word. If not possible, right-click is fine.
It needs to have an "Ignore All," but not an Add, Ignore, or any of the others. Just Ignore All.
Ideally, you should be able to change how the dropdown box looks, at least to some extent.
No user-spell checker is needed. That is, I don't need a button that when you click it brings up a spell check dialog, I only need real time checking. I actually already have a spell checking dialog library.
If someone can suggest a good library (I am willing to pay for it) or, better yet, explain a good method for doing this to a textarea in the first place that would be fantastic.
At the very least if someone could explain how to check the JTextArea against my dictionary and put the red underline and the dropdown on clicking or any of these steps that would be a great start.
Thanks for the potential help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://jortho.sourceforge.net/
示例可以在此处查看
http://www.inetsoftware.de/other-products/jortho/sample
http://jortho.sourceforge.net/
Sample can be seen here
http://www.inetsoftware.de/other-products/jortho/sample
试图列出一个完整的清单。欢迎补充。
成熟的解决方案
库
Trying to make a complete list. Feel free to add.
Full-blown solutions
Libraries
决定使用 Wintertree
Decided to go with Wintertree