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