JFace 对话框宽度错误
我在我的应用程序中使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果为所有小部件正确设置布局数据,则对话框的大小应该正确。您还可以尝试执行 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