How can i get value from subwindow

Hi,

how can I get a value of a subwindow to place it in parentwindow?

Thanks.

I might not have understood your question, but as long as you have a reference to your subwindow or the value, there should be no problem(?)

Or then you create an id, caption or data that identifies your window, for example like this, here in the UI:

        Window w = new Window("subwindow");
        addWindow(w);
        w.setId("someId");

        Button b = new Button("click me", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                Window wind = null;
                for (Window w2 : getWindows()) {
                    if (w2.getId() != null && w2.getId().equals("someId")) {
                        wind = w2; // Getting the reference
                        break;
                    }
                }

            }
        });
        layout.addComponent(b);