我创建一列组合框,如下所示:
for (int i = 0; i < 5; i++) {
new TableItem(table_1, SWT.NONE);
}
TableItem[] itemsCombo = table_1.getItems();
for (int i = 0; i < 5; i++) {
TableEditor editor_1 = new TableEditor(table_1);
final CCombo comboXX = new CCombo(table_1, SWT.NONE);
comboXX.setItems(allValues);
editor_1.grabHorizontal = true;
comboXX.select(getIndexInLOV(choosenItemList.get(i), allValues));
editor_1.setEditor (comboXX, itemsCombo[i], 0);
}
然后单击“确定”,我想浏览所有组合框并收集它们存储的所有值。仍然没有找到如何可能。谢谢!