开发者

SWT Miglayout Problem

开发者 https://www.devze.com 2023-03-24 13:49 出处:网络
I\'m using miglayout in my swt application but when the c开发者_JAVA技巧ontent of a text field is large it tends to push the width/height of the text field out of view, this issue also affects table c

I'm using miglayout in my swt application but when the c开发者_JAVA技巧ontent of a text field is large it tends to push the width/height of the text field out of view, this issue also affects table component with many colums, how can this be prevented to ensure that the components stays within the available width of the shell.

Thank you.


Add wmin 0to the layout data of your text. See here for clarification.

In my opinion this issue is the biggest source of frustration for newcomers to Miglayout on SWT.


I had a similar problem in Miglayout for Swing. I needed to add wmin pref+10 to the layout constraints

0

精彩评论

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