public class AddWordAction extends AbstractAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
AddWordAction(JTextComponent jText,
String word)
Create a action to add a word to the current user dictionary.
|
AddWordAction(JTextComponent jText,
String word,
String label)
Create a action to add a word to the current user dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent arg0)
Add the word to the current user directory.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic AddWordAction(JTextComponent jText, String word)
jText - component that need refresh after adding to remove the red zigzag lineword - the word that can be addedpublic AddWordAction(JTextComponent jText, String word, 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 actionpublic void actionPerformed(ActionEvent arg0)
Copyright © 2016. All rights reserved.