Class ColorChooser
java.lang.Object
ColorChooser
public class ColorChooser
- extends Object
A class to make working with a color chooser easier
for students. It uses a JColorChooser to let the user
pick a color and returns the choosen color object.
- Author:
- Barbara Ericson
Method Summary |
static Color |
pickAColor()
Method to let the user pick a color and return
the color object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorChooser
public ColorChooser()
pickAColor
public static Color pickAColor()
- Method to let the user pick a color and return
the color object.
- Returns:
- the picked color or red if no color was picked