B4J Question Resize to Fit with OpenJDK 11

Andrew (Digitwell)

Active Member
Licensed User
I have just migrated to OpenJDK 11, as I was getting tis issue on one of my machines.

That fixes the problem, however, I am now getting a problem with the resize to fit code as given here:

I get the following error message.
java.lang.NoSuchMethodException: java.lang.Object.resizeColumnToFitContent(javafx.scene.control.TableColumn, int)

Does anyone know a workaround?


Staff member
Licensed User
That code depended on a private API that was removed in Java 9.

If it is critical for you then you can keep using Java 8. Google Maps works with the latest version of Java 8.

In the long run I recommend to switch to B4XTable.