Results table questions

Posted by Bob Loushin on
URL: http://imagej.273.s1.nabble.com/Results-table-questions-tp3688966.html

I have several questions about the Results table.

1)  Recently someone asked if there was a way to close the results table from a plugin.  I've been looking for a way to do this, too.  The closest I've come is the following:

Frame res = WindowManager.getFrame("Results");
if (res != null) res.dispose();

This kills the result table.  Unfortunately, it seems to be too effective...the next time I do an IJ.write (for instance, if the plugin ends and then is restarted), the results table does not come back.  So if anyone knows of a way to close the Results table but allow it to be re-opened by the usual methods, please let us know!

2)  According to the API documentation for v1.43r, IJ.write(String) is deprecated in favor of IJ.log(String).  Does anybody know why?  I don't care if the window my user gets the results in says "Results" or "Log" at the top, but as far as I know, the log file lacks the equivalent of IJ.setColumnHeadings, IJ.isResultsWindow, etc.  Is there a reason for the change-over, and are there plans to beef up the support for the log window?

Thanks,
Bob