@Override
	public Object getValueAt(int arg0, int arg1) {
		//return percent dl
		Torrent t = allTorrents.toArray(new Torrent[0])[arg0];//slow
		switch(arg1){
		case 0:
			return t.name;
		case 1:
			String s =null;
			if(t.totalBytes/1024 <999){
				s=""+dg.format(t.totalBytes/1024.0)+" KB";
			}else if(t.totalBytes/(1024*1024)<999){
				s=""+dg.format(t.totalBytes/(1024.0*1024.0))+" MB";
			}else{
				s=""+dg.format(t.totalBytes/(1024.0*1024.0*1024.0))+" GB";
			}
			return s;
		case 2:
			String st;
			float f = 1.0f-(((float)t.getLeft())/t.totalBytes);
			if(t.getStatus().equals("Checking files")){
				st= ("Checking files "+dg.format((float)f*100.0)+"%");
			}else{
				st=(dg.format((float)f*100.0)+"%");
				
			}
			return st;
		case 3:
			return t.getRecentDownRate();// (bytes/ms)=kb/s
		case 4:
			return t.getRecentUpRate();
		case 5:
			return t.getPeers().size();
		}
		return null;
	}