JFace 对话框宽度错误

发布于 2024-10-28 21:26:27 字数 176 浏览 3 评论 0原文

我在我的应用程序中使用 JFace 对话框。而且我不会子类化 getInitialSize(xxx)。 JFace 可以正确确定对话框的高度,但宽度。我的问题是 JFace 对话框是否可以自动计算我的对话框大小而无需静态初始大小?我可以调整静态尺寸来修复我的屏幕(MAC OS X)。但在其他平台(WINDOWS)中,它的尺寸变得很糟糕。

I uses the JFace dialog in my app. And I don't subclass the getInitialSize(xxx). The JFace could determine the correctly height of dialog, But width. My question is if the JFace dialog could auto calculates my dialog size without a static initial size? I could adjust the static size to fix my screen(MAC OS X). But in other platform(WINDOWS), it become a bad size.

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

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

发布评论

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

评论(1

画骨成沙 2024-11-04 21:26:27

如果为所有小部件正确设置布局数据,则对话框的大小应该正确。您还可以尝试执行 shell.pack(),以确保小部件和对话框获得正确的大小

If you set the layout data properly for all the widgets, then the dialog should size properly. You can also try to do a shell.pack(), to ensure the widgets & dialog get the right size

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