
Subc lasses: javax.swing .text.html.HTMLEditorKit, javax.swing .text.rtf.RTFEditorKit
Retur ned By: JTextPane.getStyledEditorKit(), StyledEditorKit.StyledTextAction.getStyledEditorKit()
StyledEditorKit.AlignmentAction Ja va 1 .2
javax.swing .text cloneable serializable
This action class sets the alignment paragraph attribute for the currently selected text in
a JEditorPane. StyledEditorKit cr eates thr ee distinct instances of AlignmentAction to handle left,
right, and center alignment. If the command string is set in the ActionEvent,itisinter-
pr eted as the integer value to use for the alignment attribute.
public static class StyledEditorKit.AlignmentAction extends StyledEditorKit.StyledTextAction {
// Public Constructors
public AlignmentAction(String nm, int a);
// Public Methods Overriding AbstractAction
public void actionPerfor med(java.awt.e vent.ActionEvent e);
}
StyledEditorKit.BoldAction Ja va 1.2
javax.swing .text cloneable serializable
This action toggles the bold text character attribute, either on the selected text or, if
ther e is no selection, on the current set of attributes used for inserted text.
public static class StyledEditorKit.BoldAction extends StyledEditorKit.StyledTextAction {
// Public Constructors
public BoldAction();
// Public Methods Overriding AbstractAction
public void actionPerfor med(java.awt.e vent.ActionEvent e);
}
StyledEditorKit.FontFamilyAction Ja va 1.2
javax.swing ...