Shell shell = SWT_AWT.new_Shell(display, canvas);
for(ComponentListener componentListener: canvas.getComponentListeners()) {
canvas.removeComponentListener(componentListener);
}
for(ComponentListener componentListener: componentListeners) {
canvas.addComponentListener(componentListener);
}
return shell;
}
// these are the methods that are in the Shell class, and can create the embedded shell:
// win32: public static Shell win32_new (Display display, int handle) {