public class AddWordAction
extends javax.swing.AbstractAction
Constructor and Description |
---|
AddWordAction(javax.swing.text.JTextComponent jText,
java.lang.String word)
Create a action to add a word to the current user dictionary.
|
AddWordAction(javax.swing.text.JTextComponent jText,
java.lang.String word,
java.lang.String label)
Create a action to add a word to the current user dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Add the word to the current user directory.
|
public AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word)
jText
- component that need refresh after adding to remove the red zigzag lineword
- the word that can be addedpublic AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word, java.lang.String label)
jText
- component that need refresh after adding to remove the red zigzag lineword
- the word that can be addedlabel
- the display text of the actionCopyright © 2005 - 2013 i-net software. All Rights Reserved.