Add a new Node::treeVisible property? [was: Make the Node#treeVisibleProperty() public?]

Kevin Rushforth kevin.rushforth at oracle.com
Wed Feb 18 22:46:23 UTC 2026


As a meta-comment, I feel the need to point out that adding new public 
API is never just "make some non-public method or property public".

The question to ask is: "Would adding an XYZ property or feature be a 
good enhancement for the JavaFX API?" The fact that there happens to be 
some internal method that seems to implement what you need is largely 
irrelevant (other than as a proof of concept that such a thing is possible).

So to reformulate your question:

Would adding a read-only treeVisible property to Node be a good 
enhancement for the JavaFX API?

Now it's in a form that we can discuss it.

I don't yet have an opinion, but let's see where the discussion goes.

-- Kevin


On 2/18/2026 12:50 PM, Glavo wrote:
> Hi,
>
> For controls that contain looping animations, using 
> `Node#treeVisibleProperty()` can help reduce unnecessary overhead.
> However, this property is not public, making it difficult for custom 
> controls to use.
> So, is it possible to mark this property as public?
>
> Glavo
>



More information about the openjfx-dev mailing list