|
Hi ImageJ list,
I'm trying to write a relative easy macro to make a database based on ImageJ.
I'm stack with a problem and I do not know if and how it could be fixed.
My database is a tab delimited text file with the first row being the fields names and each row represent an entry. Initially I was thinking that an easy way to visualize each entry were to call recursively the "dialog.addString" (see the example below). unfortunately in this way, since I have a lot of fields, my dialog box get too big and it does not fit the screen.
My question is, there is a simple way to get around it? I know that there is a possibility to make an array of checkbox, is possible to do something similar with other Dialog.add entries?
in addition does anyone knows if there already is a macro/plugin that does something similar to a database?
thanks a lot
Max
(Items is an array in wich the entry are on different rows and the fields are tab delimited)
for(q=1; q<items.length; q++) {
item=split(items[q],"\t");
Dialog.create("entry #"+q);
for(qq=0; qq<item.length; qq++) Dialog.addString(fields[qq],item[qq],20);
Dialog.show()
}
===============================
Massimiliano Baldassarre
Department of Pharmacology
Yale University School of Medicine
Sterling Hall of Medicine
Room 386B
333 Cedar Street Box 208066
New Haven CT 06520-8066
Phone (203) 785-2871
Fax (203) 785-7670
==============================
|