simple textWidth() question... I figured it out.
in
Programming Questions
•
2 years ago
Why i am getting a "null point exception" as soon as a hit any key with the following code? I isolated this so it easy to understand.
void draw(){}
void keyPressed()
{
char in;
in = (char)key;
println(in); // till here is ok
println(textWidth(in)); // this cause a nuul pointer... if u comment out every thing works
}
thanks for any help
1
