How to get a popup Dialog<T> to inherit styles from main app?
jonathan.giles at oracle.com
Wed Nov 5 00:32:16 UTC 2014
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.
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();
> 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?
More information about the openjfx-dev