Context menu is shown on blank area
Brought to you by:
i_net_software
When I have a misspelled word at the end of a text and I click somewhere behind (or below) the text on an empty area, the context menu is shown for the last misspelled word. This seems to be a bit buggy, but maybe this is a wanted behaviour. Then this is a feature request. I would like to have a possibility to show the context menu with the spelling suggestions only when a misspelled word is under the cursor.
The spell checking orientate on the text cursor. It is not possible to set the text cursor behind or below the last character.
In the CheckListener we use:
jTextComponent.viewToModel( Point );
to Request the text position. Do you know an API call to detect if the Mouse is behind or below of the text?
I have check in a fix. Please test it.