JavaFX で ChoiceBox の TextColor を変更しようとしています。
これは私のcssファイルです:
.choice-box{
-fx-background-color:
#000000,
linear-gradient(#7ebcea, #2f4b8f),
linear-gradient(#426ab7, #263e75),
linear-gradient(#395cab, #223768);
-fx-padding: 3 10 4 20;
-fx-text-fill: white;
-fx-font-size: 12px;
}
そして、これは私の選択ボックスのスクリーンショットです:
-fx-text-fill: white;
ボタンでは機能しますが、チョイック ボックスでは機能しません。なんで?
選択ボックスのテキストの色を変更するにはどうすればよいですか?