SWT/JFACE的table中加入控件 事件监听

来源:互联网 发布:菲律宾进出口数据 编辑:程序博客网 时间:2024/04/26 06:27
TableItem ti = new TableItem(table,SWT.NONE);
ti.setText(0,selectAttributeList.get(i));
TableEditor te;
ArrayList<Control> controls = new ArrayList<Control>();
te = new TableEditor(table);
Combo combo1 = new Combo(table,SWT.NONE);
combo1.setItems(new String[] {"新闻", "供求", "会展"});
controls.add(combo1);
te.grabHorizontal = true;
te.setEditor(combo1,ti,1);
0 0
原创粉丝点击