How to add JavaFX CSS in your SceneBuilder
Step 1: Create CSS file on your Computer with a dot(.) CSS extension.
Step 2: Open your Scene Builder
Step 3: Create new fxml file on your Computer.
Step 4: Add components in fxml e.g. Anchorpane,button etc.
Step 5: In SceneBuilder choose a component that you want to add CSS e.g I want to add CSS to a button then go to properties of the component and click on Stylesheets button. then select CSS file you already created.
Step 6: Now edit your style.css file using any editor and add JavaFX CSS Syntax.
- Happy Coding ;)
Comments
Post a Comment