ConfirmDialog error in a subwindow (subwindow in subwindow)

I get this error when trying to open a ConfirmDialog within a subwindow

Cause: java.lang.IllegalArgumentException: You can only add windows inside application-level windows.

Thanks in advance

A. Zakos,

What you will want to do is add your confirm dialog to your main application window. Something like this:


I hope this helps,


silly me, …

instead of …

thx Jay

I am trying to implement the exact functionality. But the issue I see is after I show the popup and clicked on “Confirm” my subWindow content is changed to the mainWindow content.

That would be good if I close the subwindow too after I click on “Confirm” rather than staying on the subWindow and see the mainWindow content in subWindow.

Any Suggestions??