在Java SWT中,下拉框是Combo

C#中对应的是ComboBox,它用起来跟java有所不同。

1) 清空下拉框所有内容:

ComboBox cmb;
...

cmb.Items.Clear();

cmb.Text="";    // 要加上这句