public class ColorChooser extends Object implements TextListener, AdjustmentListener
| Constructor and 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 and 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 AdjustmentListenerCopyright © 1997–2018 NIH. All rights reserved.