We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I am trying to create a sketch with 2 windows - I am able to do this using a number of examples, however, I am having difficulty with the second window. Inside the public void draw section, I am trying to display an image file but it is saying "nullpoinerexception" and is unable to access the image file (I am able to dispay the image in the first window in the void draw section.
Below is the structure I am using, if someone could explain how I can set it up so that it can access image files in the sketch folder then that would be great! Thanks
public class secondApplet extends PApplet {
public void setup() {
size(500, 500);
}
public void draw() {
}
}
Answers
http://forum.processing.org/two/discussions/tagged?Tag=papplet.main()
"it is saying "nullpoinerexception""
I see no code in what you show that can throw an exception, even less the one you report (partially; we didn't get the full message).