public static class StyledEditorKit.FontFamilyAction extends StyledEditorKit.StyledTextAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
StyledEditorKit.FontFamilyAction(String nm,
String family)
Creates a new instance of
FontFamilyAction to set the
font family to family. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event)
Performs the action.
|
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributesaugmentList, getFocusedComponent, getTextComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic StyledEditorKit.FontFamilyAction(String nm, String family)
FontFamilyAction to set the
font family to family.nm - the name of the Actionfamily - the font family to setpublic void actionPerformed(ActionEvent event)
event - the ActionEvent that describes the action