info.monitorenter.gui.chart.events
Class JComponentActionSetBackground
java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AJComponentAction
info.monitorenter.gui.chart.events.JComponentActionSetBackground
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public final class JComponentActionSetBackground
- extends AJComponentAction
Performs the action of setting the background color
(JComponent.setBackground(java.awt.Color)
}
of a JComponent
.
- Version:
- $Revision: 1.3 $
- Author:
- Achim Westermann
- See Also:
- Serialized Form
JComponentActionSetBackground
public JComponentActionSetBackground(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 "background" 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.