public void BudujTabele(){
	
	current=0;						//wysokosc jedenj ramki 22piks
	HLevel=22;
	
	for(int i=0 ; i<ILOSC_POL ; i++)
		 pola[i].setVisible(false);

	for (int i=0 ; i<Posilek.ILOSC_SKLADNIKOW ; i++){
		 DeleteAction[i].setValue(0);
	}
	
	for (int i =0 ; i<pos.current ; i++){	
				skl = BazaObject.IteratorSkladniki.getSkladnik(pos.skladniki[i]);
				wag = pos.waga[i];
		
				DeleteAction[i].setValue(i);							((WeightTextField) pola[current+1]).setValue(i,pola[current+1]);
				pola[current].setText(skl.name);  	        pola[current+1].setText(""+wag);
				pola[current].setBounds(0,HLevel,dlugosc_n,wysokosc); 	pola[current+1].setBounds(dlugosc_n, HLevel, dlugosc_w, wysokosc);
				pola[current+2].setText(""+skl.W*wag/100); 			 	pola[current+3].setText(""+skl.B*wag/100);
				pola[current+2].setBounds(dlugosc_n+dlugosc_w,HLevel,dlugosc_m,wysokosc);			pola[current+3].setBounds(dlugosc_n+dlugosc_w+dlugosc_m, HLevel, dlugosc_m,wysokosc);
				pola[current+4].setText(""+skl.T*wag/100);      
				pola[current+4].setBounds(dlugosc_n+dlugosc_w+2*dlugosc_m,HLevel,dlugosc_m,wysokosc);
									pola[current].setVisible(true);					
									pola[current+1].setVisible(true);					
									pola[current+2].setVisible(true);					
									pola[current+3].setVisible(true);					
									pola[current+4].setVisible(true);					
				HLevel+=wysokosc;
				current+=5;
	}
	
	if (pos.current<Posilek.ILOSC_SKLADNIKOW)
	{
		skladnikiCombo.setBounds(5, HLevel+45, 150, 25);
		skladnikiCombo.setVisible(true);
	}
	else skladnikiCombo.setVisible(false);
	
	
	
	poleM1.setText("Ogolnie");      		poleM1.setBounds(108,HLevel+5,50,25);
	poleM2.setText(""+pos.macro.W);    		poleM2.setBounds(158,HLevel+5,26,25);
	poleM3.setText(""+pos.macro.B);    		poleM3.setBounds(184,HLevel+5,26,25);
	poleM4.setText(""+pos.macro.T);    		poleM4.setBounds(210,HLevel+5,26,25);
    poleM5.setText(pos.macro.Kcal+" Kcal"); poleM5.setBounds(162,HLevel+30,70,25);
	poleM1.setEditable(false);	poleM2.setEditable(false);	poleM3.setEditable(false);	poleM4.setEditable(false); 	poleM5.setEditable(false);
	MainFrame.updateMainMacro();
	
	System.out.println("===========================BudujTabele()=============================");
	//System.out.println(SaveChanges.DniInsert[0]);
	for(Skladnik c: BazaObject.skladniki){
		if(c!=null)
			System.out.println("name="+c.name);
	}
	
}