Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

issue with styling a menuBar's background color?

KonradZuseMay 28 2013 — edited May 30 2013
Hello all,

I have been trying to style a menuBar but it seems I'm either not doing it correctly, or it's not working.

from what I've found the syntax is
 -fx-background-color: Color; 
I have tried using black, and nothing. I also tried
 -fx-color-: black;
and for some reason the text color changed from black to white.... weird...

I'm using Java 8 and there is something called "Background" which I'm not too sure how to use, but not too sure if I SHOULD use that.

I would assume the setStyle would work like using a css file and calling that, but I'm curious if It's something I'm doing or if it's an evil Java 8 bug :P.

Thanks all!

~KZ
This post has been answered by jsmith on May 29 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2013
Added on May 28 2013
7 comments
2,702 views