SWT学习:[2]Table中添加Button按钮

 时间:2024-10-17 09:42:53

1、以在Table中添加buton控件为例。

SWT学习:[2]Table中添加Button按钮

3、创建TableItem,设置TableEditor,把Button控件加入。TableE蟠校盯昂ditor editor = new TableEditor();editor.grabHorizontal = true;//自动填充表格editor.minimumHeight = buttons.getSize().y;//设置editor最小高度editor.minimumWidth = buttons.getSize().x;//最小宽度editor.setEditor(buttons, item, columnIndex);//指定给哪个单元格设置该控件。

SWT学习:[2]Table中添加Button按钮SWT学习:[2]Table中添加Button按钮

6、当删除Table中的某一个控件时,需要将控件和Editor都删除。button.dispose();editor.dispose();然后Table再删除该行记录。

SWT学习:[2]Table中添加Button按钮
  • C#如何进行数字类型的算术运算
  • 怎样在Typora中插入代码和代码块
  • 【校园指南】东莞理工学院城市学院奖学金攻略
  • WPS利用VARP函数计算方差
  • 在C++中如何来实现进制转换
  • 热门搜索
    西双版纳的旅游景点 旅游公司经营范围 江苏旅游网 宜兰旅游攻略 四川旅游图 旅游公司logo 黄山旅游图 福建 旅游 马六甲旅游 阿联酋旅游签证