public interface ColorSelectionModel
JColorChooser component to represent the
selected color.| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Registers a listener to receive
ChangeEvent notifications
from this model. |
java.awt.Color |
getSelectedColor()
Returns the selected color.
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Deregisters a listener so that it no longer receives
ChangeEvent
notifications from this action. |
void |
setSelectedColor(java.awt.Color color)
Sets the selected color.
|
java.awt.Color getSelectedColor()
void setSelectedColor(java.awt.Color color)
color - the selected color.void addChangeListener(javax.swing.event.ChangeListener listener)
ChangeEvent notifications
from this model.listener - the listener.void removeChangeListener(javax.swing.event.ChangeListener listener)
ChangeEvent
notifications from this action.listener - the listener.