public class ColorUtils
{
private static final int MAX_CACHE_SIZE = 1729;
+
/*
* a cache for colours generated from text strings
*/
}
/**
+ *
+ * @return random color
+ */
+ public static final Color getARandomColor()
+ {
+
+ Color col = new Color((int) (Math.random() * 255),
+ (int) (Math.random() * 255), (int) (Math.random() * 255));
+ return col;
+ }
+
+ /**
* Convert to Tk colour code format
*
* @param colour