public void init(Controller c){
  super.init(c);
  display=new Display2D(ForagingHoneyBeeSimulation.WIDTH,ForagingHoneyBeeSimulation.HEIGHT,this,1);
  displayFrame=display.createFrame();
  displayFrame.setTitle("Honey bee playground");
  c.registerFrame(displayFrame);
  displayFrame.setVisible(true);
  display.attach(vidPortrayal,"Agents");
  display.setInterval(5);
}

public void init ( Controller c ) { super . init ( c ) ; display = new Display2D ( ForagingHoneyBeeSimulation . WIDTH , ForagingHoneyBeeSimulation . HEIGHT , this , 1 ) ; displayFrame = display . createFrame ( ) ; displayFrame . setTitle ( "Honey bee playground" ) ; c . registerFrame ( displayFrame ) ; displayFrame . setVisible ( true ) ; display . attach ( vidPortrayal , "Agents" ) ; display . setInterval ( 5 ) ; }
setting up the visuals .
