private void FillHistory(Panel panel) {

		int i, j, k, n, m;
		EfloyGeneration g = new EfloyGeneration();

		/*
		panel.add(new Label("#"));
		panel.add(new Label("Steps"));
		panel.add(new Label("Average"));
		panel.add(new Label("Average"));
		panel.add(new Label("Distance"));
		panel.add(new Label("Distance"));
		panel.add(new Label("Distance"));
		panel.add(new Label("Collision"));
		panel.add(new Label("Collision"));
		panel.add(new Label("Collision"));
		*/

		panel.add(new Label("#"));
		panel.add(new Label("Steps "));
		panel.add(new Label("Speed"));
		panel.add(new Label("Accel."));
		panel.add(new Label("DLL"));
		panel.add(new Label("DLS"));
		panel.add(new Label("DSL"));
		panel.add(new Label("CLL"));
		panel.add(new Label("CLS"));
		panel.add(new Label("CSL"));

		//Enumeration e = Efloys.HistoryData.elements();
		n = Efloys.HistoryData.size();
		m = (int) (n/24+1);
		Enumeration  e  =  Efloys.HistoryData.elements();

		k=0;
		//for  (Enumeration  e  =  Efloys.HistoryData.elements();e.hasMoreElements();)  {	
		//for (i=0;i<n;i += m) {
		for (i=0;i<n;i++) {
			//k++;
			
			try {
				//for (j=0;j<m;j++)
				g = ((EfloyGeneration) e.nextElement());
				k++;
				panel.add(new Label(""+g.num));
				panel.add(new Label(""+g.steps));
				panel.add(new Label(""+double2String(g.speedavg,2)));
				panel.add(new Label(""+double2String(g.accavg, 2)));
				panel.add(new Label(""+double2String(g.dllavg, 2)));
				panel.add(new Label(""+double2String(g.dlsavg, 2)));
				panel.add(new Label(""+double2String(g.dslavg, 2)));
				panel.add(new Label(""+double2String(g.cllavg, 2)));
				panel.add(new Label(""+double2String(g.clsavg, 2)));
				panel.add(new Label(""+double2String(g.cslavg, 2)));
			}
			catch (Exception ex) {
			}
			
		}
		
		
		if (k<18) {
			for (i=k+1;i<17;i++)
				for (j=0;j<7;j++)
				   panel.add(new Label(" "));
		}
		

	}