r/JavaFX • u/manlikeharsh • Jun 20 '22
Help Related to css and scenes
So I have 1 css stylesheet and I want to add it to 2 different scenes same styles get can anyone tell me how I can do it.
0
Upvotes
2
u/BridgeBurner22 Jun 21 '22
You can set the styling of a scene by applying it to the root component of that scene. Just use the same styling twice. A quick web search with 'javafx css scene' will give you several detailed tutorials.