Java11 SetComponentMixingCutoutShapte alternative

113 Views Asked by At

I have an application written on Java SE 8 that was heavily using features for mixing Heavyweight and Lightweight components. In particular, the function "SetComponentMixingCutoutShape" was used, which was later deprecated in future versions of Java.

Now I have an option to switch to Java 11 - and I run into a problem. Seemingly, there's simply no alternative for this functionality in later versions of Java. Or at least I couldn't find one. So what does that mean - that I simply don't have access to that feature AT ALL anymore?

Thanks for replies!

1

There are 1 best solutions below

0
Vlad Vyatkin On

As soon as I asked I found the answer.

The functionality has been moved to component class

Before you used to call setComponentMinxngCutoutShape(component, shape);

Now you need to go component.setMixingCutoutShape(shape);