javax.swing.text

Class StyledEditorKit.AlignmentAction

public static class StyledEditorKit.AlignmentAction extends StyledEditorKit.StyledTextAction

Sets the alignment attribute on the selected text.
Constructor Summary
AlignmentAction(String nm, int a)
Creates a new instance of AlignmentAction to set the alignment to a.
Method Summary
voidactionPerformed(ActionEvent event)
Performs the action.

Constructor Detail

AlignmentAction

public AlignmentAction(String nm, int a)
Creates a new instance of AlignmentAction to set the alignment to a.

Parameters: nm the name of the Action a the alignment to set

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the action.

Parameters: event the ActionEvent that describes the action