CheckComboBox(ControlsFX) set to read only [JavaFX]
问题 I have been trying to figure out how to set CheckComboBox to read-only. I do not want to disable the CheckComboBox because I want the user to be able to scroll and look through the already checked items, however I want to disallow the ability of checking/unchecking an item. Is there a way to do this? 回答1: Hacky and fragile, but works: public class CheckComboReadOnlySkin<T> extends CheckComboBoxSkin<T> { public CheckComboReadOnlySkin(CheckComboBox control) { super(control); ((ComboBox)