How do I set the ProgressIndicator color?


How do I set the ProgressIndicator color?
What css would I use to set the color of a ProgressIndicator?
Here is my ProgressIndicator:
ProgressIndicator progress = new ProgressIndicator(-1.0);
Here is the CSS that I have which is not working:
.progress-indicator:indeterminate *.spinner {
-fx-background-color: red;
cjavapro wrote:
My ProgressIndicator is indeterminate. new ProgressIndicator(-1.0) creates an animated "infinite" progress icon.You're right. I guess either the API needs correction or the FX source needs to throw an IllegalArgumentException for a negative parameter to the constructor.
With either <tt>new ProgressIndicator()</tt> or <tt>new ProgressIndicator(-1.0)</tt> I do get the background color from the CSS, so long as I don't set any <tt>Effect</tt>.
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example along with your CSS file, that demonstrates the problem.
Read More: The other 4 answers