src/main/java/org/teachingextensions/WindowUtils/MultiTurtleWindow.java
public void addTurtle(Turtle turtle)
  {
    if (turtle == null) { return; }
    turtle.setFrame(this.getFrame());
    turtle.setPanel(this);
    this.turtles.add(turtle);
    clearPainters();
    configurePainters();
  }
public void addTurtle(Turtle turtle)
  {
    if (turtle == null) { return; }
    turtle.setFrame(this.getFrame());
    turtle.setPanel(this);
    this.turtles.add(turtle);
    clearPainters();
    configurePainters();
  }
public void addTurtle ( Turtle turtle ) { if ( turtle == null ) { return ; } turtle . setFrame ( this . getFrame ( ) ) ; turtle . setPanel ( this ) ; this . turtles . add ( turtle ) ; clearPainters ( ) ; configurePainters ( ) ; }
Adds a turtle instance to a window
NOTE: this method must be called BEFORE calling any other methods on turtle instances
<p><b>Example:</b> {@code multiTurtleWindow.addTurtle(myTurtle)}</p>

@param turtle
A turtle instance
Adds a turtle instance to a window NOTE : this method must be called BEFORE calling any other methods on turtle instances <p > <b > Example : < / b > { @code multiTurtleWindow . addTurtle ( myTurtle ) } < / p >