public void draw

edited May 2015 in Using Processing

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

Sign In or Register to comment.