>
> Everything should work as expected if you add a SheetStateListener and
> perform your logic in SheetStateListener#sheetClosed(Sheet),
>

That is indeed a little cleaner.


> or a provide a SheetCloseListener to one of the Sheet#open(...) methods.
>

That's the cleanest for the cases where the caller is interested in the
contents of the dialog.  In other cases, the dialog is invoked as a black
box that just "does its own thing", and separation of concerns means I
shouldn't put the close logic in the caller.  I had been previously unaware
of SheetStateListener, so now I have techniques for both cases, thanks.

Reply via email to