Why does a Vaadin ComboBox get invisible when doing setReadOnly(true)?
Screenshots
normal

invisible 
The source code
import java.util.List;
import com.vaadin.ui.ComboBox;
public class PropertyComboBox extends ComboBox
{
public PropertyComboBox(List<String> properties)
{
super();
for(String property: properties) {this.addItem(property);}
this.setImmediate(true);
this.setMultiSelect(false);
this.setNewItemsAllowed(false);
this.setInputPrompt("Property");
this.setReadOnly(true);
}
}
If you are trying to create a combo box in which the user can’t write anything, check out the NativeSelect component.
From the API doc:
If you don’t need these features, then you should definetely consider using NativeSelect.