Does anyone know how can I check words (entered via JTextFeilds or other means) in dictionary? Just like MicroSoft Word does. I would really appreciate if someone can help.
You'll need a "dictionary" - probably the best bet is a database. This will be the hardest part - I've no idea where you would get that kind of data.
You can then connect to your db via JDBC, and perform searches on your user's word.
There are no methods that are built into the Java API itself. You can create your own spell checker or buy an API (do a search on Google for "Java Spell Checker".
I could not find any articles on how to build a spell checker in Java; however I did find some for C++. The concept should be the same though...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.