info.monitorenter.gui.chart.events
Class JComponentActionSetForeground
java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AJComponentAction
info.monitorenter.gui.chart.events.JComponentActionSetForeground
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public final class JComponentActionSetForeground
- extends AJComponentAction
Performs the action of setting the foreground color (
JComponent.setForeground(java.awt.Color)
} of a
JComponent
.
- Version:
- $Revision: 1.4 $
- Author:
- Achim Westermann
- See Also:
- Serialized Form
JComponentActionSetForeground
public JComponentActionSetForeground(JComponent component,
String colorName,
Color color)
- Create an
Action
that accesses the JComponent
and identifies itself with the given action String.
- Parameters:
component
- the target the action will work on.colorName
- the descriptive String
that will be displayed by
AbstractButton
subclasses that get this
Action
assigned (
AbstractButton.setAction(javax.swing.Action)
).color
- the Color
to set as "foreground" of the internal
JComponent
.
actionPerformed
public void actionPerformed(ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2007 LGPL, All Rights Footloose.