@ArtifactProviderFor(GriffonView.class)
public class MyWindow extends AbstractSwingGriffonView {
@Override
public void initUI() {
final JFrame jframe= (JFrame) getApplication()
.createApplicationContainer(Collections.<String, Object>emptyMap());
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
above window is appeared as expected but when I closed it will close. If there a way I can stop closing ? I wanted to have a confirm dialog but without working do nothing on close I am not able to give option dialog
You can register a custom
WindowDisplayHandleror use theWindowManagerDSL as explained at http://griffon-framework.org/guide/2.4.0/#_views_windowmanager