Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 1998 17:28:23 +1100 (EST)
From:      "Simon J. Gerraty" <sjg@quick.com.au>
To:        Stephen Wynne <stevemw@northwest.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Lesstif 0.83, JFC 1.0.1, JDK 1.1.5 on FreeBSD 2.2-STABLE
Message-ID:  <199803170628.RAA27142@gate.quick.com.au>
References:  <199803162332.PAA26805@northwest.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Wynne writes:
>I went through all of SwingSet from JFC 1.0.1 (as I had done before)
>with only one "hang" this time. I suspect Java and not Lesstif as a
>potential culprit, as well, this time. This compares to about five
>spectacular (and repeatable) crashes tracable to Lesstif in its last
>release.

FYI, a very simple patch to lesstif-0.82 and the patch below,
make AWT behave quite well with lesstif.  I know the lesstif patch
should be in 0.83 so I won't bother repeating it.

>I'd like to thank the Lesstif people for requesting as much

I'll second that.  I was extremely pleased with the level and speed
of response I got from the lesstif list.  A pitty it took me so
long to work out what bug I was chasing before I asked :-)

>2. Any dialogs that appear don't seem to be tall enough on my 1152x864
>   display; buttons at the bottom of the screen are chopped off.

The diff below does away with the 25,5,5,5 hack in MFramePeer.java
and is the other half of one of the changes made to awt_Frame.c
I didn't know anyone on this list was still using lesstif, so just
change the __NetBSD__ to USING_LESSTIF :-)

--sjg

--- src/netbsd/java/runtime/properties_md.c.~1~	Mon Mar  2 13:27:51 1998
+++ src/netbsd/java/runtime/properties_md.c	Sat Mar 14 01:34:53 1998
@@ -105,6 +106,19 @@
     if (v != NULL)
         PUTPROP(props, "awt.toolkit", v);
 
+    /*
+     * REVISIST: <sjg>
+     * The 25,5,5,5 defaults in MFramePeer.java do not work with
+     * lesstif, so override them.  We've already fixed awt_Frame.c to
+     * handle this.
+     */
+#ifdef __NetBSD__
+    PUTPROP(props, "awt.frame.topInset", "0");
+    PUTPROP(props, "awt.frame.bottomInset", "0");
+    PUTPROP(props, "awt.frame.leftInset", "0");
+    PUTPROP(props, "awt.frame.rightInset", "0");
+#endif
+    
     /*
      * XXX - environmental override for os.name
      * Used for JWS (at least), so it can be made to think we are


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803170628.RAA27142>