I need to set the overrun style of the selected item. To set the overrun style, as far as I understand, I need to access the buttonCell
(which is of type ObjectProperty[javafx.scene.control.ListCell[T]]
).
Hence I wrote
val fileComboBox = new ComboBox[java.io.File](Seq())
println(fileComboBox.buttonCell)
in order to see which value the buttonCell
member has.
Result: [SFX]ObjectProperty [bean: ComboBox@319f91f9[styleClass=combo-box-base combo-box], name: buttonCell, value: null]
, which means there is no button cell the overrun style of which I could set (value: null
).
How can I change the overrun style of the combo box?