Please file a jira issue and we can work on this in there. Most probably
the solution will be that we have the underlying stage (in the
HeavyweightDialog class, as you mention) copy in the stylesheets of its
owner window automatically.
-- Jonathan
On 2/11/2014 4:08 a.m., Pete Moss wrote:
I am just getting started using the Dialog<T> class and I noticed that my
dialog content is not picking up styles that I've added to a global style
sheet in my app. I suspect because Dialog's HeavyweightDialog is creating a
new Stage.
In my Main class I have:
Scene scene = new Scene(root, 600, 500, Color.YELLOW);
String s = Main.class.getResource("ui/styles.css").toExternalForm();
scene.getStylesheets().add(s);
How can I get that stylesheet applied to the scene graph in my popup
dialog? At what point in the lifecycle of my dialog can I do this?
Thanks.