您可以使用 Visual Editor 来更改 SWT Shell 的父代,以根据 SWT 应用程序快速创建对话框和其他 shell。
sShell1 = new Shell();
sShell1 = new Shell(sShell);
sShell1 = new Shell(sShell2);