[sip-comm-dev] SpellCheck issues


#1

Hi devs,

First I would like to know if it would be possible to add a method in the
UIService in order to access the text editor area (ChatWritePanel ?) and
that returns it through a JTextArea object.
Indeed the library I use works only with JTextArea objects in parameter.
For now there's just a method getMessage() that returns the text (as a
String) of the text editor of the chat window.

Besides, concerning the real time spellchecking ( with the highlight of the
misspelled words ) I think that if the JToggleButton is selected we can
start the spellcheck when the text editor is focused and stop it when the
focus is lost. What do you think ?

pace e salute

JD


#2

Hi JD,

Besides, concerning the real time spellchecking ( with the highlight of the misspelled words ) I think that if the JToggleButton is selected we can start the spellcheck when the text editor is focused and stop it when the focus is lost. What do you think ?

What do you mean with "start the spellcheck" and "stop it" ? Do you mean that the words won't be underlined when the text area isn't focused anymore ? Or simply that you'll stop any calculations ?

Cheers,
Ben

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

In fact, the question was to put or not a JToggleButton in the CHAT_TOOLBAR
for realtime spellchecking or if we use the focus on the text editor to
start/stop it.

I don't know if the highlight is persistent once the real time spell
checking is stopped.

I'll check this out as soon as the possibility of retrieving the text editor
area (ChatWritePanel ?) in a JTextArea object.

I'm taking the latest cvs sources of the library to see the changes.

Cheers

JD

···

2007/7/26, Benoit Pradelle <ze_real_neo@yahoo.fr>:

Hi JD,

> Besides, concerning the real time spellchecking ( with the highlight
> of the misspelled words ) I think that if the JToggleButton is
> selected we can start the spellcheck when the text editor is focused
> and stop it when the focus is lost. What do you think ?
What do you mean with "start the spellcheck" and "stop it" ? Do you mean
that the words won't be underlined when the text area isn't focused
anymore ? Or simply that you'll stop any calculations ?

Cheers,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi JD,

It's great to hear that you're working on the spellcheck plugin!

Actually I'm not sure that the best way of doing this is returning the JTextArea object, because that would cause that the UI service would be dependent to the implementation.

I have another idea though and I would like to hear your opinion. What would you say if the UI supplies you with a listener that is fired every time user writes a letter in the text area or clicks on a word. This will give you the possibility to check the text in real time and to open a right button menu with possible word corrections. As for underlying the wrong words, I could also provide you a method that do that. What do you think about that? Do you need something else to provide a spellcheck functionality?

As for the JToggleButton I think it's a very good idea to have such.

Yana

JD wrote:

···

In fact, the question was to put or not a JToggleButton in the CHAT_TOOLBAR
for realtime spellchecking or if we use the focus on the text editor to
start/stop it.

I don't know if the highlight is persistent once the real time spell
checking is stopped.

I'll check this out as soon as the possibility of retrieving the text editor
area (ChatWritePanel ?) in a JTextArea object.

I'm taking the latest cvs sources of the library to see the changes.

Cheers

JD

2007/7/26, Benoit Pradelle <ze_real_neo@yahoo.fr>:

Hi JD,

> Besides, concerning the real time spellchecking ( with the highlight
> of the misspelled words ) I think that if the JToggleButton is
> selected we can start the spellcheck when the text editor is focused
> and stop it when the focus is lost. What do you think ?
What do you mean with "start the spellcheck" and "stop it" ? Do you mean
that the words won't be underlined when the text area isn't focused
anymore ? Or simply that you'll stop any calculations ?

Cheers,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net