Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Scene Builder - buttom background image

Lehel Sipos
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Using css I can set a background image to a javafx button with:
-fx-background-image: url("../images/play.png");

But in Scene Builder I can not to this, having an fxml. I set the style like in css but does not work.
Is this a scene builder error? Any other property i can set, but not the background image. For example -fx-background-color it works....

what is the problem?

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!