Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使ComboxCellEditor为只读?_Java_Swt_Jface - Fatal编程技术网

Java 如何使ComboxCellEditor为只读?

Java 如何使ComboxCellEditor为只读?,java,swt,jface,Java,Swt,Jface,我有一个ComboBoxCellEditor,用户只能在其中选择项目,而不能在组合框中编辑项目 有这样的s.th吗 cellEditor.setReadOnly(true); 当然,创建它需要: new ComboBoxCellEditor(parent, items, SWT.READ_ONLY) 你会成功吗

我有一个
ComboBoxCellEditor
,用户只能在其中选择项目,而不能在组合框中编辑项目

有这样的s.th吗

cellEditor.setReadOnly(true);

当然,创建它需要:

new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
你会成功吗