On Thu, 9 Jan 2025 19:08:34 GMT, Andy Goryachev <ango...@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.

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

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

Reply via email to