Back to LanguageTool Homepage - Privacy - Imprint

Integrating Languagetool wtih JJswingcomponents


(Evans) #1

Hi,

Can you please suggest or guide how i can embed Languagetool into Java swing application such that the JTextcomponents reflects an inline spellchecker.

Is this possible or suggest work around,


(Daniel Naber) #2

Am 16.07.2013 11:31, schrieb Evans [via LanguageTool User Forum]:

Can you please suggest or guide how i can embed Languagetool into
Java swing application such that the JTextcomponents reflects an
inline spellchecker.

This message has an attachment with a patch that does that:

http://www.mail-archive.com/languagetool-devel@lists.sourceforge.net/msg01773.html

Regards
Daniel


(Senthil) #3

Daniel,

Can you please suggest how to use this patch with languagetool-standalone.jar?

Thanks,
Senthil


(Daniel Naber) #4

Am 16.07.2013 13:00, schrieb Senthil [via LanguageTool User Forum]:

Can you please suggest how to use this patch with
languagetool-standalone.jar?

You will need Java programming knowledge to apply the patch. How to get
our source code is described at
http://www.languagetool.org/development/#checkout. If you don't know
Java you will need to wait for the next release (at least), which is
scheduled for the end of September.

Regards
Daniel


(Senthil) #5

Hi Daniel,

Thanks a ton for your reply. Actually I am a java developer.

Since I cannot use SVN I tried to add the new class ContextMenuSupport and inject the changes for Main.java provided in the patch to the languagetool-standalone.jar, however, I could not apply the third change 'contextMenuSupport.checkingFinished(ruleMatches);' in Main.java since I could not find the statement 'resultArea.displayResult();' in the Main.java class.

We are basically decompressing the JAR to update the new files.

Do you see any any information might be required to proceed?

Thanks,
Senthil


(Daniel Naber) #6

the patch to the languagetool-standalone.jar, however, I could not
apply the third change
'contextMenuSupport.checkingFinished(ruleMatches);' in Main.java since
I could not find the statement 'resultArea.displayResult();' in the
Main.java class.

I think it's around line 544 in org.languagetool.gui.Main. If that
doesn't help, you might want to join the developers' mailing list at
https://lists.sourceforge.net/lists/listinfo/languagetool-devel; the
developer of that patch can probably better help you than I can.

Regards
Daniel


(Evans) #7

Hi Daniel,

Thanks for your reply. We were able to sort that out.
We realised that these changes are with respect to standalone jar.

We want to use this feature by embedding language tool into our java application(offline)

Please advise if it is the same procedure for using it as embedded in java application or suggest how we can achieve this embedd solution.

Regards
Evanson Paiva


(Evans) #8

any help daniel. Please suggest pointers.

evanson