Open window in maximized state

Is it possible to open a dialog window in its maximized state? e.g. automatically open a Dialog window maximised without using the “+” sign?

e.g. have this:

openWindow("consultationScreen", WindowManager.OpenType.DIALOG.closeable(true).resizable(true).modal(true), params);

open in the maximised state without having to click the + button?

I would have thought this would do it…

public class Consultationscreen extends AbstractWindow {

    public void init(Map<String, Object> params) {
1 Like


Unfortunately, there is no API for this in Cuba. At the moment, you can use Vaadin API in your window controller (from “ready” life-cycle method):

public class ClientEdit extends AbstractEditor<Client> {
    public void ready() {

        // maximize using Vaadin Window
        com.vaadin.ui.Component parent = unwrapComposition(Component.class);
        while (parent != null) {
            if (parent instanceof com.vaadin.ui.Window) {
                Window window = (Window) parent;
            parent = parent.getParent();

Thank you for this idea, I’ve created an issue. We will implement this feature it in one of the next minor versions. See:

:ticket: See the following issue in our bug tracker: