Turtle(jPanel);
JPanel
Turtle t = new Turtle(this); //the current JPanel class is passed in as "this" t.forward(100); t.drawPath(g);