Hey there,
So, I'm kind of a Java/Processing noob, so this is going to be a kind of basic issue. But I have been playing with the Switchboard library, and want to display the results to an applet window, and have been having a hell of a time with that. The problem seems to be with the text() function, the string and array.
Specifically, the error I get is:
"No applicable overload for a method with signature "text(java.lang.String[], int, int, int, int)" was found in type "processing.core.PApplet". Perhaps you wanted the overloaded version "void text(java.lang.String $1, float $2, float $3, float $4, float $5);" instead?"
Anyone got any ideas?
Code:
import processing.opengl.*;
import org.switchboard.*;
Switchboard board;
ArrayList words = new ArrayList();
void setup() {
size(300, 300, OPENGL);
background(0);
frameRate(10);
board = new Switchboard(this);
board.setYahooKey("xxxxxxx");
board.yahooWeb("self");
}
void resultReceived() {
words.add(board.yahooWeb.getSummary());
}
void draw() {
String word[] = (String[]) words.toArray (new String [words.size ()]);
println(word); //Check to make sure that the service is working
PFont font = loadFont("HelveticaNeue-BoldItalic-48.vlw");
textFont(font, 24);
fill(255);
text(word, 10, 10, 300, 300);
}