Re: Question about Tables
Posted by
Craig Uhrich on
Dec 17, 2018; 5:18pm
URL: http://imagej.273.s1.nabble.com/Question-about-Tables-tp5021574p5021582.html
Michael,
Thanks for your suggestion. But I don't see how I can get the table to the foreground if the table doesn't exist.
I cobbled together a workaround for my initial question using the existing getList("window.titles") function.
// Create "TDI_Prec" table if it doesn't already exist
t_name = "TDI_Prec";
table_exists = false;
wins = getList("window.titles");
for (i=0; i<wins.length; i++) if (wins[i] == t_name) table_exists = true;
if (table_exists) {
row = Table.size(t_name);
} else {
Table.create(t_name);
row = 0;
}
It may not be elegant, but it creates the Table window if none exists, and allows me to append if the Table is already there.
-Craig
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html