Items added to a control like ListView, TableView, TreeView, are of an arbitrary type and are rendered via a CellFactory, not added as Nodes. (And in fact, as recent clarifications to the Javadoc mention, Nodes as items in the lists are strongly discouraged.). The items of a SplitPane are explicitly Nodes. So it isn’t quite the same, but I get your point. I think if anything a clarification in the Javadoc would help. I suspect changing the behaviour of lookup/lookupAll might be more problem than it is worth. In my application, I’ve worked around the issue by deferring the call until the CSS has been applied through the usual flow, but I can confirm that explicitly calling applyCss() is also a valid workaround. Scott On Dec 24, 2022, at 7:05 PM, John Hendrikx <john.hendr...@gmail.com> wrote:
|
- Node.lookupAll behaves differently before Scene is shown Scott Palmer
- Re: Node.lookupAll behaves differently before Scene is ... John Hendrikx
- Re: Node.lookupAll behaves differently before Scene... Scott Palmer
- Re: Node.lookupAll behaves differently before S... John Hendrikx
- Re: Node.lookupAll behaves differently befo... Scott Palmer