Hi,
Looking at the Source Code for the WindowManager.closeAll(), I think I
found the solution. If you've created a ResultsTable RT and then
called RT.show("Title"), the results table will be displayed as a
window named "Title." To close this window, you need to use the
WindowManager:
Frame FR = WindowManager.getFrame("Title");
if (FR instanceof TextWindow)
((TextWindow)FR).close();
else if (FR instanceof PlugInFrame)
((PlugInFrame)FR).close();
In the case of the Results Table, its Frame is a TextWindow, so you
don't need the second else if. To close the default Results table,
just change "Title" into "Results"
-Parker Seidel
On 8/11/05, Thomas Sadowski <
[hidden email]> wrote:
> Hello all,
>
>
>
> Does anyone know the syntax required to close the results table in an ImageJ
> application???? Using the following:
>
> TextPanel tp = IJ.getTextPanel();
> tp.hide();
>
>
> Merely clears the text in the Results. I wish to get rid of the entire
> window.
>
> Thank you in advance.
>
>
> Thomas Sadowski
> Southern Connecticut State University
>