当我打开任何其他窗口时如何使我的对话框隐藏

发布于 2024-08-23 11:23:37 字数 95 浏览 3 评论 0原文

我正在使用 jface 对话框,现在我面临一个问题,无论您打开哪个窗口,此对话框都会出现在该窗口之上。所以我需要隐藏或显示它,以便它只出现在其父窗口上,而不是出现在所有窗口上。

I am using a jface dialog, and now i am facing a problem where no matter which window you open this dialog will appear on top of that. So i need to hide or show it such that it should come only on its parent window, not on all the windows.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终弃我 2024-08-30 11:23:37

确保将正确的窗口作为父 shell 传递给对话框。

Make sure you are passing the correct window as the parent shell to the dialog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文