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.
https://www.b4x.com/android/forum/threads/jgooglemaps-error.108380/#content

That fixes the problem, however, I am now getting a problem with the resize to fit code as given here:
https://www.b4x.com/android/forum/threads/tableview-content-resize.70348/#post-447113

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

Does anyone know a workaround?
 

Erel

Administrator
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.
 
Top