Hi anonymous,
after doing changes, you have to update the display. This applies to
both images (ImagePlus.updateAndDraw) as to the ResultsTable:
...in ResultsTable.java (also in the API description):
/** Updates the Results window. */
public void updateResults()
Michael
________________________________________________________________
On 3 Mar 2010, at 12:01, Cspr wrote:
> This is the code currently employed:
>
> ResultsTable rt = new ResultsTable();
> ParticleAnalyzer pa = new ParticleAnalyzer(options, measurements, rt,
> micronsize, Double.POSITIVE_INFINITY);
>
> pa.analyze(imp3);
>
> After which I aim to delete all the content in the ResultsTable. As
> surprisingly easy it might sound that does not seem to work.
> Doing a simple for-loop
>
> for(int i = 0; i < rt.getCounter(); i++){
> rt.deleterow(j)
> }
>
> does not work at all. I'm completely unable to manipulate the
> ResultsTable
> in any way. Also trying to use the instance of the ResultsTable
> used by the
> ParticleAnalyzer method does not work i.e.
>
> ResultsTable rt = ResultsTable.getResultsTable();
> System.out.println(rt.getValue("Mean",15)); // To check if anything is
> present. There IS a "Mean" Column.
>
> results in nothing. What am I missing?
>
> Thanks.
>
>
> --
> View this message in context:
http://n2.nabble.com/Cannot-delete-
> rows-in-ResultsTable-tp4666791p4666791.html
> Sent from the ImageJ mailing list archive at Nabble.com.