The title says everything. I want to change the color of the prompt text of a not editable combobox
, so that the text has the same color like the prompt text of a editable combobox
.
In my CSS-file I tried to use -fx-prompt-text-fill
in .combo-box
, .combo-box-base
, .combo-box-base .text-field
and .combo-box-base .text-input
, but nothing worked.
What styleclass do I have to use?
When the
ComboBox
is not editable, there is noTextField
, and the property-fx-prompt-text-fill
is no longer valid, since the control displayed instead, aListCell
, doesn't extendTextInputControl
.In order to set the style of this cell, we can provide our custom styled
ListCell
: