public static class StyledEditorKit.FontFamilyAction extends StyledEditorKit.StyledTextAction
| Constructor and Description |
|---|
StyledEditorKit.FontFamilyAction(java.lang.String nm,
java.lang.String family)
Creates a new instance of
FontFamilyAction to set the
font family to family. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Performs the action.
|
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributesaugmentList, getFocusedComponent, getTextComponentpublic StyledEditorKit.FontFamilyAction(java.lang.String nm, java.lang.String family)
FontFamilyAction to set the
font family to family.nm - the name of the Actionfamily - the font family to setpublic void actionPerformed(java.awt.event.ActionEvent event)
event - the ActionEvent that describes the action