Hi, I am creating a Jcaptcha engine so that I will be able to set the background of my jcaptcha to blue. I tried following the example on 5 Mins Integration Tutorial, under the comments they have a small example of how to configure the jcaptcha.
However my netbeans reflected that the SingleColorGenerator
and FunkyBackgroundGenerator
cannot find symbol. Can anyone point out what am I suppose to do to resolve this issue? Thank you.
[EDITED]
The Jcaptcha Engine Configuration code as per below:
package com.test.controller;
import java.awt.Color;
import com.octo.captcha.component.image.backgroundgenerator.BackgroundGenerator;
import com.octo.captcha.component.image.backgroundgenerator.FunkyBackgroundGenerator;
import com.octo.captcha.engine.image.ListImageCaptchaEngine;
public class myCaptchaEngine extends ListImageCaptchaEngine {
protected void buildInitialFactories() {
ColorGenerator cg = new SingleColorGenerator(Color.blue);
BackgroundGenerator background = new FunkyBackgroundGenerator(250, 100, cg);
}
}