In a class I've created I would like to display something. I'm trying to use the package processing.core and use it's class PApplet. I extend the class PApplet within my class (called QState):

public class GraphFrame extends PApplet{
@Override
public void setup() {
super.setup();
//noLoop();
}

@Override
public void draw() {
size(1000,1000);
rect(100,100,100,100);
}
}
public void graph(){
GraphFrame frm = new GraphFrame();
Graph2D gr = new Graph2D(frm, 10, 10, true);
}


And then within main I make the calls QState foo; foo.graph();, but I get no display to the screen. What's wrong? I'm probably just not up-to-speed on how PApplet works, but I have tried looking. Any help is appreciated. :)