Is Node.setClip() expected detect changes to the clip-Node?

Pavel Safrata pavel.safrata at
Mon Aug 5 06:07:26 PDT 2013

Hi Tom,
this is definitely a bug, clip node has to be synced automatically. 
Would you please file a Jira issue?

On 5.8.2013 13:55, Tom Schindl wrote:
> Hi,
> I've been hunting a bug in TitledPaneSkin [1] which makes me wonder if
> maybe the control code is using the Clip-Feature in appropriately.
> The code in general looks like this:
> public class BlaSkin extends Node {
>     private Rectangle rect;
>     public BlaSki() {
>        rect = new Rectangle();
>        setClip(rect);
>     }
>     public void changeSize(double x, double y) {
>        rect.setWidth(x);
>        rect.setHeight(y);
>     }
> }
> so the clipping node changes its size while the code is running but it
> looks like the rendering code does not know about this and never updates
> the peer's clipNode (in impl_updatePeer) now I guess this is simply an
> optimization introduced in FX8 so my question is is Node expected to
> detect its clip node changes or is the developer forced to somehow tell
> the Node to do so (my first direct work around was to set the clip to
> null and back to the rectangle which fixes the problem)?
> Tom
> [1]

More information about the openjfx-dev mailing list