javax.swing.text
public static class StyledEditorKit.ForegroundAction extends StyledEditorKit.StyledTextAction
Constructor Summary | |
---|---|
ForegroundAction(String nm, Color fg)
Creates a new instance of ForegroundAction to set the
foreground color to fg .
|
Method Summary | |
---|---|
void | actionPerformed(ActionEvent event)
Performs the action.
|
ForegroundAction
to set the
foreground color to fg
.
Parameters: nm the name of the Action fg the foreground color to set
Parameters: event the ActionEvent
that describes the action