Class ColorChooser

java.lang.Object
  extended by 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 chosen color object.

Author:
Barb Ericson ericson@cc.gatech.edu

Constructor Summary
ColorChooser()
           
 
Method Summary
static void main(String[] args)
          Main method for testing the ColorChooser
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
 

Constructor Detail

ColorChooser

public ColorChooser()
Method Detail

main

public static void main(String[] args)
Main method for testing the 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