B4J Question More "Geometry" Problems - B4J 6.8 with OpenJDK 11

GuyBooth

Active Member
Licensed User
I recently ran into problems with the progress bar, being fooled into thinking it wasn't working. I reported it on this thread https://www.b4x.com/android/forum/threads/b4j-6-8-with-openjdk-11-progress-bar-not-working.99878
Now I have encountered two more problems - the first I describe here:

When I load a form using this code:
B4X:
frmCDAddition.Initialize("frmCDAddition",MB_Add.frmMBAddition.Width-25, MB_Add.frmMBAddition.Height-32)
    'Load the main layout file
    frmCDAddition.RootPane.LoadLayout("dtmm_mbaddcd")
    frmCDAddition.SetOwner(MB_Add.frmMBAddition)
    frmCDAddition.AlwaysOnTop = True
    frmCDAddition.Title = "MusicBase CD Addition"
    frmCDAddition.Resizable = False
    frmCDAddition.SetWindowSizeLimits(575, 568, 575, 568)
    frmCDAddition.Show

With jdk 1.8 the result is as I expect, shown in Capture2 attached.
With jdk 11, the result is as shown in Capture1 - filling the owner beneath. As soon as I move it with the mouse, it shrinks to the proper size, but is not in the middle until I move it there.I haven't found a way to work around this.
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    39.7 KB · Views: 102
  • Capture2.PNG
    Capture2.PNG
    91.8 KB · Views: 109
Top