Search code examples
javauser-interfacepluginsmacrosimagej

"User Interface" for macros in imagej


I created five macros which step by step effectively fulfill my research needs. I would like to join those macros in one effective plugin. All paths lead to java programming. But I was wondering, if there is a way, I could create “User interface” like that:

enter image description here

By clicking a button, macro would run. I would specify one or two variables (Insert year of the last ring…).


Solution

  • You can do it using the Dialog.* macro functions. See the DialogDemo macro for an example.