How to create a composite UI?

Hi,
Can anyone tell me how to develop a composite window that consists of several images on the left, options on the right and button ‘Cancel’ and ‘OK’ on the right bottom. As far as I know, there are components in ImageJ that can achieve those respectively (ImageWindow, GenericDialog,…, etc). How can I combine all of them in a single window? I know it should be a basic problem , I just want to know where to start. Many thanks.

For an example, you can have a look at the GUI of Trainable Weka Segmentation by @iarganda:


But instead of developing a new GUI for your plugin, it will be much easier (and more modular and reusable) if you just use parameter annotation in your plugin and let SciJava create the UI for you.

2 Likes