开发者

JFace dialog wrong width

开发者 https://www.devze.com 2023-02-21 01:43 出处:网络
I uses the JFace dialog in my app. And I don\'t subclass the getInitialSize(xxx). The JFace could determine the correctly height of di开发者_如何转开发alog, But width. My question is if the JFace dial

I uses the JFace dialog in my app. And I don't subclass the getInitialSize(xxx). The JFace could determine the correctly height of di开发者_如何转开发alog, 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消