I found this with the ImageJ2 UI in napari-imagej:
Ideally, UIService.show() would check if there is already a UI visible, and then, if it is, ensure that the application frame is also visible. This is what I was doing in napari-imagej, however it is a little hacky (why would the ImageJ2 UI be visible and the application frame not be?)
Note that in napari-imagej, I also kill all WindowListeners, and add my own that hides the window when the user presses the close button, instead of actually closing the window.
I found this with the ImageJ2 UI in napari-imagej:
Ideally,
UIService.show()
would check if there is already a UI visible, and then, if it is, ensure that the application frame is also visible. This is what I was doing in napari-imagej, however it is a little hacky (why would the ImageJ2 UI be visible and the application frame not be?)Note that in napari-imagej, I also kill all
WindowListener
s, and add my own that hides the window when the user presses the close button, instead of actually closing the window.