private void updateResults() {
		if (UpDown.getNumPlayers()==5 && table.getRowCount()==6) {
			( (MyTableModel) table.getModel() ).removeRow();
			( (MyTableModel) table.getModel() ).removeColumn();
			setTableFormat(5);
		}
		else if (UpDown.getNumPlayers()==6 && table.getRowCount()==5) {
			( (MyTableModel) table.getModel() ).addRow();
			( (MyTableModel) table.getModel() ).addColumn();
			setTableFormat(6);
		}
		
		for(int i=0;i<UpDown.getNumPlayers();++i) {
			table.setValueAt("P"+(i+1),i,1);							// set pid
			table.setValueAt(UpDown.getPlayer(i).getName(),i,2);		// set name
			table.setValueAt(UpDown.getPlayer(i).getBeatSize(),i,3);	// set wins
			table.setValueAt(UpDown.getPlayer(i).getLostSize(),i,4);	// set losses
		
			for(int j=i;j<UpDown.getNumPlayers();++j) {					// set result (1=won 0=lost null=not played)
				if (i!=j)
					if (UpDown.getPlayer(i).beatContains(UpDown.getPlayer(j))) {
						table.setValueAt(1,i,(5+j));
						table.setValueAt(0,j,(5+i));
					}
					else if (UpDown.getPlayer(i).lostContains(UpDown.getPlayer(j))) {
						table.setValueAt(0,i,(5+j));
						table.setValueAt(1,j,(5+i));
					}
					else {
						table.setValueAt(null,i,(5+j));
						table.setValueAt(null,j,(5+i));
					}
			}
			table.setValueAt(UpDown.getRank(i),i,0);					// set rank
		}
	}