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

TableItem ti = new TableItem(table,SWT.NONE);
ti.setText(0,selectAttributeList.get(i));
TableEditor te;
ArrayList controls = new ArrayList();
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);

你可能感兴趣的:(Java)