Hi, Kevin Hendricks suggested I troll here to find folk who still
build the JDK with lesstif.  I'm building for NetBSD, but I figure
that does not matter when it comes to AWT and lesstif.

I'm also still building 1.1.6 - but from reading the release notes for
blackdown jdk 1.1.7 it sounds like many of the same issues remain.
I'm building against lesstif 0.85 as that is what my 1.1.5 port used
and it works fine.  I'll be updating lesstif - but first I'm trying to
get a grip on why 1.1.5 works ok and 1.1.6 is so broken.

If anyone is interested, http://www.quick.com.au/java/awt-tests/t4.java
is a simple test class which shows a couple of problems with 1.1.6 (I
would be interested to here if they remain in 1.1.7).

When t4 is run with no args, it produces a _simple_ 200x200 window
which is resizable by the wm.  This works fine with 1.1.6

With a single arg it adds a menuBar.  With 1.1.5 this is fine, but
with 1.1.6 we get a shadow of the menuBar at the bottome of the window
and the frame is no longer resizable.  Traces below...

With a 2nd arg it calls pack() before setSize() and 1.1.6 really
starts to fall apart.  Not only does the resizing not work, but the
setSize() does not work either.

All cases work fine with jdk-1.1.5 (and lesstif-0.85).

Oh and I fixed the problem of the window flashing on the screen and
then jumping to 0,0 - in case that is still bugging anyone.

--sjg 

Here are the output of t4 for the above 3 cases.  In each run, I
simply dragged one corner of the frame to resize it, and then closed
the window to terminate the app.  The WM is fvwm95 btw, and XFree86 3.3.1

0 args:

This class should produce a 200x200 window which is resizable.
With a single arg it will add a menuBar
Another arg will have it pack() before setSize()
 ++ create.  target x pos: 0, target y pos: 0
    create. shell. target width: 200, target height: 200
    create. offsets - top: 25, bottom: 5, left: 5, right: 6
    create. setting shell resizable
    create. shell: 15f400, form: 176a00, inner canvas: 176c00, outer canvas: 178200
    create. Done.
 ++ reshape.
 ++ setMenuBar
    reshape. x: 0, y: 0, w: 200, h: 200
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 6
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.
 ++ in ..._pShow()
    ..._pShow().  Done.
>>>>Other WM insets: 583, 430
>>>>insets fixed: 5, 25
 ++ reshape.
 ++ setMenuBar
    reshape. x: 583, y: 430, w: 200, h: 200
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 5
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 122, send event: 0,display: 1251328, 
 +window: 117440537
 ++ setMenuBar
    canvasMapOrResize.  x: 0, y: 0, width: 190, height: 170
    offsets - top: 25, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 200, height: 200
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
 ++ shell resize. Xevent x,y,w,h: 0, 0, 252, 210.
 ++ canvasMapOrResize. Event - type: 22, serial: 150, send event: 0,display: 1251328, 
 +window: 117440537
 ++ setMenuBar
    canvasMapOrResize.  x: 0, y: 0, width: 252, height: 210
    offsets - top: 25, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 262, height: 240
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
Bye

1 arg: + menuBar

This class should produce a 200x200 window which is resizable.
With a single arg it will add a menuBar
Another arg will have it pack() before setSize()
 ++ create.  target x pos: 0, target y pos: 0
    create. shell. target width: 200, target height: 200
    create. offsets - top: 25, bottom: 5, left: 5, right: 6
    create. setting shell resizable
    create. shell: 16e600, form: 180c00, inner canvas: 180e00, outer canvas: 184500
    create. Done.
 ++ reshape.
 ++ setMenuBar
    reshape. x: 0, y: 0, w: 200, h: 200
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 6
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.
 ++ ...pSetMenuBar.
    ...pSetMenuBar. new menu bar (widget 177000, parent: 180c00) - menu bar height: 0
 ++ setMenuBar
    setMenuBar.... menu found with height: 25, border: 0, margin: 3, bar border: 0
    setMenuBar.... ****************************************
    setMenuBar.... added menuBar height: 35
    ...pSetMenuBar. with menu bar: menu bar height: 0, top offset: 60, bottom offset: 5
    ...pSetMenuBar. Done
 ++ in ..._pShow()
    ..._pShow().  Done.
>>>>Other WM insets: 600, 464
>>>>insets fixed: 5, 25
 ++ reshape.
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    reshape. x: 600, y: 464, w: 200, h: 200
    reshape. offsets - top: 60, bottom: 5, left: 5, right: 5
    reshape. adjustments - top: 35, bottom: 0
   reshape. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 194, send event: 0,display: 1304576, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 200, height: 200
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 201, send event: 0,display: 1304576, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 203, send event: 0,display: 1304576, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
 ++ shell resize. Xevent x,y,w,h: 0, 0, 243, 245.
 ++ canvasMapOrResize. Event - type: 22, serial: 247, send event: 0,display: 1304576, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 31, width: 189, height: 170
    offsets - top: 60, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 199, height: 235
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 254, send event: 0,display: 1304576, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 31, width: 189, height: 170
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
Bye
 ++ ...pSetMenuBar.
    ...pSetMenuBar. mb is null.
 ++ setMenuBar
    setMenuBar.... removed menuBar height: 35
    ...pSetMenuBar. Done.
 ++ reshape.
 ++ setMenuBar
    reshape. x: 595, y: 435, w: 199, h: 235
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 5
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.

2 args: + menuBar + pack()

This class should produce a 200x200 window which is resizable.
With a single arg it will add a menuBar
Another arg will have it pack() before setSize()
 ++ create.  target x pos: 0, target y pos: 0
    create. shell. target width: 0, target height: 0
    create. offsets - top: 25, bottom: 5, left: 5, right: 6
    create. setting shell resizable
    create. shell: 16d400, form: 17ea00, inner canvas: 17ec00, outer canvas: 183500
    create. Done.
 ++ reshape.
 ++ setMenuBar
    reshape. x: 0, y: 0, w: 0, h: 0
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 6
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.
 ++ ...pSetMenuBar.
    ...pSetMenuBar. new menu bar (widget 170c00, parent: 17ea00) - menu bar height: 0
 ++ setMenuBar
    setMenuBar.... menu found with height: 25, border: 0, margin: 3, bar border: 0
    setMenuBar.... ****************************************
    setMenuBar.... added menuBar height: 35
    ...pSetMenuBar. with menu bar: menu bar height: 0, top offset: 60, bottom offset: 5
    ...pSetMenuBar. Done
 ++ reshape.
    reshape. After initial reshape but insets not yet fixed !
    reshape. x: 0, y: 0, w: 11, h: 65
 ++ reshape.
    reshape. After initial reshape but insets not yet fixed !
    reshape. x: 0, y: 0, w: 200, h: 200
 ++ in ..._pShow()
    ..._pShow().  Done.
>>>>Other WM insets: 617, 498
>>>>insets fixed: 5, 25
 ++ reshape.
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    reshape. x: 617, y: 498, w: 200, h: 200
    reshape. offsets - top: 60, bottom: 5, left: 5, right: 5
    reshape. adjustments - top: 35, bottom: 0
   reshape. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 194, send event: 0,display: 1400832, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 200, height: 200
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 201, send event: 0,display: 1400832, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 203, send event: 0,display: 1400832, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 35, width: 190, height: 135
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
 ++ shell resize. Xevent x,y,w,h: 0, 0, 100, 72.
 ++ canvasMapOrResize. Event - type: 22, serial: 243, send event: 0,display: 1400832, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 31, width: 48, height: 1
    offsets - top: 60, bottom: 5, left: 5, right: 5
 ++ WindowResize.
    outerCanvasResizeCB.  width: 58, height: 66
    outerCanvasResizeCB. JAVA_UPCALL
    WindowResize. Done.
    canvasMapOrResize. Done.
 ++ canvasMapOrResize. Event - type: 22, serial: 250, send event: 0,display: 1400832, 
 +window: 117440565
 ++ setMenuBar
    setMenuBar.... menu found with height: 21, border: 0, margin: 3, bar border: 0
    canvasMapOrResize.  x: 0, y: 31, width: 48, height: 1
    offsets - top: 60, bottom: 5, left: 5, right: 5
    canvasMapOrResize. Done.
Bye
 ++ ...pSetMenuBar.
    ...pSetMenuBar. mb is null.
 ++ setMenuBar
    setMenuBar.... removed menuBar height: 35
    ...pSetMenuBar. Done.
 ++ reshape.
 ++ setMenuBar
    reshape. x: 612, y: 469, w: 58, h: 66
    reshape. offsets - top: 25, bottom: 5, left: 5, right: 5
    reshape. adjustments - top: 0, bottom: 0
   reshape. Done.

Reply via email to