javax.swing.text

Class StyledEditorKit.FontSizeAction

public static class StyledEditorKit.FontSizeAction extends StyledEditorKit.StyledTextAction

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

Constructor Detail

FontSizeAction

public FontSizeAction(String nm, int size)
Creates a new instance of FontSizeAction to set the font size to size.

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

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the action.

Parameters: event the ActionEvent that describes the action