Knowledgebase Home Page  >  RapidSpell Desktop Java
Search the Knowledge Base
I am using the RapidSpellAsYouType getSuggestions() method but it returns suggestions for the previous error clicked?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=86&catId=46

Options

Print this page
Email this to a friend
It is IMPERATIVE that any mouse listeners that you wish to add to the text box, are added AFTER you have called RapidSpellAsYouType.setTextComponent.  Otherwise calling this method will result in suggestions being returned for the previous error, not the current error.
 
eg.
 
//WRONG
 
theTextComponent.addMouseListener(this);
rapidSpellAsYouType.setTextComponent(theTextComponent);
 
 
//RIGHT
 
rapidSpellAsYouType.setTextComponent(theTextComponent);
theTextComponent.addMouseListener(this);

Related Questions:

Attachments:

No attachments were found.