jueshi / apwidgets

Automatically exported from code.google.com/p/apwidgets
0 stars 0 forks source link

actual and formal argument lists differ in length #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. load sketch 
2. compile
3.

What is the expected output? What do you see instead?
Expect successful compile

C:\Users\Anyone\AppData\Local\Temp\android4532046760202925669.pde\src\changethis
package\beforesubmitting\tothemarket\aptogglebutton\APToggleButton.java:23: 
error: constructor APToggleButton in class APToggleButton cannot be applied to 
given types;
    [javac]   toggleButton = new APToggleButton(10, 200, 100, 70, "Show rectangle"); //create new toggle button from x- and y-pos. and label.
    [javac]                  ^
    [javac]   required: no arguments
    [javac]   found: int,int,int,int,String
    [javac]   reason: actual and formal argument lists differ in length

What version of the product are you using? On what operating system?
apwidgets44 on win7

Please provide any additional information below.

Using Processing 2.0a4

The two edit text examples work fine all the others fail compilation with 
similar errors.

Original issue reported on code.google.com by hjar...@paradise.net.nz on 12 Jan 2012 at 8:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok Solved    thanks?

 The mistake I made was to remove the word example from the filenames when I set them up in the libraries/apwidgets/examples directory.  It seems  Processing creates a class named from the filename which obscures the class in the library.   arrrrrgh! 

Original comment by hjar...@paradise.net.nz on 2 Feb 2012 at 1:25