增加文本字段的大小 [英] Increasing the size of the Text field

查看:27
本文介绍了增加文本字段的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 org.eclipse.swt.widgets.Text 的文本字段类型.我想增加字段的长度.我该怎么做?

I am using org.eclipse.swt.widgets.Text's type of Text field. I want to increase the length of the field. How would I do this?

推荐答案

对于每个字段,如果您的常规布局管理器是 GridLayout,则您的文本框布局数据将是 GridData.将宽度和高度传递给 GridData 构造函数并将其设置为文本框 (textbox.setLayoutData()),以及有关您希望布局管理器如何操作该字段的属性.

For each field, if your general layout manager is GridLayout, your textbox layout data will be GridData. Pass width and height into the GridData constructor and set it to the textbox (textbox.setLayoutData()), along with the properties about how you want the layout manager to manipulate the field.

这篇关于增加文本字段的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆