Shouldn't the constructor be declared public?

Josh wrote:

>Hi,
>    I'm getting the following from tomcat:
>
>C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor
>matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String)
>found in class au.com.multemedia.wf.ui.FormCheckbox.
>                 checkbox = new FormCheckbox("testform","check1","Checkbox
>1");
>
>Which seems to be bogus, as FormCheckbox.java contains this:
>
> FormCheckbox(String newformname, String newvarname, String newdescription)
>{
>
>  this.setFormName(newformname);
>  this.setVarName(newvarname);
>  this.setDescription(newdescription);
>  this.setValue("on");
>
> }
>
>And I know that package is being imported, as tomcat has no problems with
>the "FormCheckbox checkbox;" line before the one causing the problem...
>
>Am I overlooking something in plain sight here?
>
>-Josh
>
>"Rimmer, real dumplings, proper dumplings when they're properly
>  cooked to perfection, proper dumplings, should not bounce."
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to