public class ColorChooser
extends java.lang.Object
implements java.awt.event.TextListener, java.awt.event.AdjustmentListener
| Constructor and Description |
|---|
ColorChooser(java.lang.String title,
java.awt.Color initialColor,
boolean useHSB)
Constructs a ColorChooser using the specified title and initial color.
|
ColorChooser(java.lang.String title,
java.awt.Color initialColor,
boolean useHSB,
java.awt.Frame frame) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e) |
java.awt.Color |
getColor()
Displays a color selection dialog and returns the color selected by the user.
|
void |
textValueChanged(java.awt.event.TextEvent e) |
public ColorChooser(java.lang.String title,
java.awt.Color initialColor,
boolean useHSB)
public ColorChooser(java.lang.String title,
java.awt.Color initialColor,
boolean useHSB,
java.awt.Frame frame)
public java.awt.Color getColor()
public void textValueChanged(java.awt.event.TextEvent e)
textValueChanged in interface java.awt.event.TextListenerpublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListener