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