6 Replies Latest reply on Oct 11, 2013 10:02 PM by bb35d6bc-131e-4b85-bfcc-f38716d1757f

    Scene builder and CSS




      I have been playing around with stylesheets, a .css file that is linked to the root anchor pane. Whenever I edit the css file I can immediately se the changes in the editor, but when I click the "show preview" button the changes are not there.
      Same goes if I run the application from netbeans.


      The css I added was meant to round the button:

      .button {
          -fx-border-color: #e2e2e2;
          -fx-border-width: 1;
          -fx-background-radius: 0;
          -fx-background-color: #1d1d1d;
          -fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif;
          -fx-font-size: 11pt;
          -fx-text-fill: #d8d8d8;
          -fx-background-insets: 1 1 1 1,1,1,2;
          -fx-border-radius: 5; <--- THIS IS THE LINE I ADDED


      And as I said, the view in my editor displays the changes immediately, but when I run the application there is no change. Note that the color, font etc is working just fine.