B4J Question Resize to Fit with OpenJDK 11

Discussion in 'B4J Questions' started by Andrew (Digitwell), Aug 29, 2019.

  1. Andrew (Digitwell)

    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?
  2. Erel

    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.
  3. Andrew (Digitwell)

    Andrew (Digitwell) Active Member Licensed User

    Ok, I'll start migrating to B4xTable
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice