RFR: 8345188: Support tree-structural pseudo-classes [v10]

John Hendrikx jhendrikx at openjdk.org
Thu Jan 9 21:54:48 UTC 2025


On Thu, 9 Jan 2025 19:22:04 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> > so maybe it should have been done programmatically in the particular application, rather than impose a non-zero overhead on everyone (however small)?
> > How difficult it would be to implement the option 4?
> 
> I don't know how difficult that would be, but I can imagine that it's quite a lot of work.
> 
> > ... via CSS. One more reason to remove it and set styles programmatically when/if needed.
> 
> I think that CSS is one of the most unique and useful features of JavaFX, which is the reason why I think we should enhance its utility, not advise people to not use it to its fullest potential.
> 
> Here's something to consider: Is there any thinkable use case where someone would _need_ to front-insert a large number of nodes one by one into a container, instead of using a bulk operation? Because if there isn't, and it's just a simple change to do the right thing, then we could also consider adding a javadoc note to that effect.

Note that you may not have choice where to insert, as the order of children also determines their Z ordering.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1652#issuecomment-2581304738


More information about the openjfx-dev mailing list