private void drawLabel(Graphics2D g2d, int tanknr) {

        // x = posx - (width)
        int width = (int) mytanks[tanknr].get_tankdata().width;
        int posx = (int) mytanks[tanknr].get_tankdata().posx;
        int x;
        
        Color mycolor = g2d.getColor();
        if (tanknr%2==0) {
			x = 100 + (40 * tanknr) - width;
		}
        else {
			x = (int) (test.width - ( 100 + (40 * tanknr)- width));
        }
		int y=50;
		if(test.player!=tanknr){
        	g2d.setColor(Color.white);
        }
		else{
			 g2d.setColor(Color.yellow);
		}
		int offset=(int)(test.height/3);//230;
		String mytext = null;
		if(mytanks[tanknr].is_dead()){
	        g2d.setColor(mycolor);
		}
        // 10+offset
        y = (int) (10+offset);
        mytext = new String("Power: "+mytanks[tanknr].get_tankdata().power);
        g2d.drawString(mytext, x, y);
        // 10+offset
        offset+=20;
        y = (int) (10+offset);
        mytext = new String("Angle: "+mytanks[tanknr].get_tankdata().angle);
        g2d.drawString(mytext, x, y);
        // 10+offset
        offset+=20;
        g2d.setColor(mycolor);
        y = (int) (10+offset);
        mytext = new String("posx: "+mytanks[tanknr].get_tankdata().posx);
        g2d.drawString(mytext, x, y);
        // 10+offset
        offset+=20;
        y = (int) (10+offset);
        mytext = new String("posy: "+mytanks[tanknr].get_tankdata().posy);
        g2d.drawString(mytext, x, y);
        // 10+offset
        offset+=20;
	    if(!mytanks[tanknr].is_dead()){
		    g2d.setColor(Color.green);
		}
        y = (int) (10+offset);
        mytext = new String("score: "+mytanks[tanknr].get_score());
        g2d.drawString(mytext, x, y);
        // 10+offset
        offset+=20;
        g2d.setColor(Color.red);
        y = (int) (10+offset);
        if(mytanks[tanknr].is_dead()){
        	mytext = new String("!!! FOOBAR !!!");
        }
        else{
        	mytext = new String("hit: "+mytanks[tanknr].get_hit());
        }
        g2d.drawString(mytext, x, y);
        if(test.player!=tanknr){
        	g2d.setColor(Color.white);
        }
		else{
			 g2d.setColor(Color.yellow);
		}
        if(mytanks[tanknr].is_dead()){
	        g2d.setColor(mycolor);
		}
        if (tanknr%2==0) {
			x = posx - (width);
		}
        else {
			x = posx - width;
        }
        // 150+offset
        offset+=100;
        y = (int) (10+offset);
        g2d.setFont(new Font("Purisa", Font.BOLD, 25));
        g2d.drawString(""+(tanknr+1), x, y);
        g2d.setColor(mycolor);
        g2d.setFont(new Font("Purisa", Font.BOLD, 12));
	}