javax.swing.text

Class StyledEditorKit.FontFamilyAction

public static class StyledEditorKit.FontFamilyAction extends StyledEditorKit.StyledTextAction

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

Constructor Detail

FontFamilyAction

public FontFamilyAction(String nm, String family)
Creates a new instance of FontFamilyAction to set the font family to family.

Parameters: nm the name of the Action family the font family to set

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the action.

Parameters: event the ActionEvent that describes the action