void showTable()
	{
			String sSumData ="";
			String sColHeadings ="";
			int nChannel1Pat, nChannel2Pat, nColocNumber;
						
	        if(!cddlg.bColocalization)
	        {
	        	sColHeadings = "Channel\tSlice\tFrame\tNumber_of_Particles";
	        	for(int i = 0;i<cd.nParticlesCount.length; i++)
	        	{
	        		nCurrPos = imp.convertIndexToPosition(i+1);
	        		
	        		sSumData = sSumData +  Integer.toString(nCurrPos[0])+"\t" +Integer.toString(nCurrPos[1])+"\t" +Integer.toString(nCurrPos[2])+"\t" +Integer.toString(cd.nParticlesCount[i])+"\n";;
	         	//	sSumData = sSumData + Integer.toString(i+1)+"\t"+Integer.toString(cd.nParticlesCount[i])+"\n";
	         	
	        		//sSumData = sSumData + 
	        	}
			
	        	Frame frame = WindowManager.getFrame("Summary");
	        	if (frame!=null && (frame instanceof TextWindow) )
	        	{
	        		SummaryTable = (TextWindow)frame;
	        		SummaryTable.getTextPanel().clear();
	        		SummaryTable.getTextPanel().setColumnHeadings(sColHeadings);
	        		SummaryTable.getTextPanel().append(sSumData);
	        		SummaryTable.getTextPanel().updateDisplay();			
	        	}
	        	else
	        		SummaryTable = new TextWindow("Summary",sColHeadings , sSumData, 450, 300);
	        }
	        else
	        {
	        	sColHeadings = "Slice\tFrame\tParticles_in_Ch1\tParticles_in_Ch2\tColocalized\t%_Ch1_coloc\t%Ch2_coloc\t";
	        	for(int i = 1;i<=imageinfo[3]; i++)//slice
	        	{
		        	for(int j = 1;j<=imageinfo[4]; j++)//frame
		        	{

		        		nChannel1Pat = cd.nParticlesCount[imp.getStackIndex(1,i,j)-1];
		        		nChannel2Pat = cd.nParticlesCount[imp.getStackIndex(2,i,j)-1];
		        		nColocNumber = cd.colocstat[i-1][j-1];
		        		sSumData = sSumData +  Integer.toString(i)+"\t" +Integer.toString(j)+"\t";// +Integer.toString(nCurrPos[2])+"\t" +Integer.toString(cd.nParticlesCount[i])+"\n";;
	        		
		        		sSumData = sSumData + Integer.toString(nChannel1Pat)+"\t"+Integer.toString(nChannel2Pat)+"\t" + Integer.toString(nColocNumber)+"\t";
	        		
		        		sSumData = sSumData + String.format("%.2f", (100*(double)(nColocNumber)/(double)(nChannel1Pat)))+"\t"+String.format("%.2f", 100*(double)(nColocNumber)/(double)(nChannel2Pat))+"\n";
	         	
		        	} 
	        	}
			
	        	Frame frame = WindowManager.getFrame("Summary");
	        	if (frame!=null && (frame instanceof TextWindow) )
	        	{	        		
	        		SummaryTable = (TextWindow)frame;	        		
	        		SummaryTable.getTextPanel().clear();
	        		SummaryTable.getTextPanel().setColumnHeadings(sColHeadings);
	        		SummaryTable.getTextPanel().append(sSumData);
	        		SummaryTable.getTextPanel().updateDisplay();		

	        	}
	        	else
	        		SummaryTable = new TextWindow("Summary",sColHeadings , sSumData, 450, 300);
	        }
			
	        //Show Results table with coordinates
	            
			cd.ptable.show("Results");

	}