question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JFXComboBox don't take standard fx attributes styles

See original GitHub issue

When i use -fx-prompt-text-fill -fx-text-fill -fx-highlight-text-fill

The style of JFXComboBox not applied in my program…

<JFXComboBox id="selector" fx:id="selector" layoutX="25.0" layoutY="180.0" prefHeight="25.0" prefWidth="200.0" promptText="select" style="-jfx-unfocus-color:#FFFFFF;-jfx-focus-color:#48A5EA;-fx-prompt-text-fill:#FFFFFF;-fx-text-fill:#FFFFFF;-fx-highlight-text-fill:#FFFFFF;"/>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jfoenixadmincommented, Jul 5, 2018

There is no method to call, you can change it through css. For example:

.jfx-combo-box > .list-cell > .text,
.jfx-combo-box > .list-cell > .label{
	-fx-text-fill: WHITE;
	-fx-fill: WHITE;
}
0reactions
Afendarcommented, Jul 4, 2018

Okay. But if I need to use text-fill color, which method can I use ? Or it is a bug ? JFXComboBox not extend ComboBox native ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JFXComboBox don't take standard fx attributes styles #740
When i use -fx-prompt-text-fill -fx-text-fill -fx-highlight-text-fill The style of JFXComboBox not applied in my program....
Read more >
JavaFX CSS Reference Guide - Oracle Help Center
This document describes the JavaFX Cascading Style Sheets (CSS) for JavaFX 2 and explains the styles, values, properties and associated grammar.
Read more >
how to style a prompt text of combobox in java FX application?
I can't seem to make it work (JDK 7, Scene Builder 1.1). I have a form with multiple TextFields and 2 ComboBoxes. Even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found