When I open a subwindow from main UI with using addWindow() I can’t close it with default “X” close button. Does anyone had the same problem?
Could you share some more code. Especially anything related to event listeners for the sub-window, in case you would have accidentally overridden some default behaviour?
Does this simple case work in your browser?
@SuppressWarnings("serial")
public class TestUI extends UI {
@Override
protected void init(VaadinRequest request) {
VerticalLayout vl = new VerticalLayout();
setContent(vl);
Window window = new Window("Sub window", new Label("Content"));
addWindow(window);
}
}