Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
subWindow could not be drag event setDraggble
I create a button, when click the button, will prompt out a subwindow. In Vaddin api doc, set the window class is default Draggable is true.
However, the window could not be drag in my Vaddin UI, Event I set the subWindow.setDraggable(true);
Does anything know is it a bug? I am using IE8
@Override
public void buttonClick(Button.ClickEvent event) {
LinkedHashMap resultItem = (LinkedHashMap)event.getButton().getData();
BulkbookingSubWindow subWindow = new BulkbookingSubWindow(resultItem);
subWindow.setImmediate(true);
UI.getCurrent().addWindow(subWindow);
Hi Jason.
I read through your post and code example and I'm left with a couple of questions. You have a "BulkbookingSubWindow" class, which I can't know how it's constructed. Does it use some special modes? I used as much of the same code as you had there and I was not able to reproduce this. Could you make a minimal test case with just Vaadin components and post it either here or our issue tracker at http://dev.vaadin.com ? That would make it easier to first see the issue, and then fix it.
//Teemu
I'm having the same difficulty. Everything is working fine except that it is not draggable. I have this:
public class HelpWindow extends Window implements View { public void setupWindow() { VerticalLayout welcomeContainer = new VerticalLayout(); setContent(welcomeContainer);
}
@Override
public void enter(ViewChangeEvent event) {
// TODO Auto-generated method stub
}
}
Then I have this:
public void buttonClick(ClickEvent event) { HelpWindow helpWindow = new HelpWindow();
// Add it to the root component
UI.getCurrent().addWindow(helpWindow);
helpWindow.setHeight("500px");
helpWindow.setWidth("500px");
helpWindow.setPosition(70,60);
helpWindow.setImmediate(true);
helpWindow.setDraggable(true);
}
Thee are some other lines of code in both of these files, but I am getting no build errors, and it all works fine except for setDraggable(true);.