From owner-freebsd-java Thu Aug 30 7: 8:50 2001 Delivered-To: freebsd-java@freebsd.org Received: from daedalus.cs.brandeis.edu (daedalus.cs.brandeis.edu [129.64.3.179]) by hub.freebsd.org (Postfix) with ESMTP id 6E60737B407 for ; Thu, 30 Aug 2001 07:08:46 -0700 (PDT) (envelope-from meshko@daedalus.cs.brandeis.edu) Received: from localhost (meshko@localhost) by daedalus.cs.brandeis.edu (8.9.3/8.9.3) with ESMTP id KAA08961; Thu, 30 Aug 2001 10:08:35 -0400 Date: Thu, 30 Aug 2001 10:08:35 -0400 (EDT) From: Mikhail Kruk To: Michael Westbay Cc: Subject: Re: jdk1.3.1 socket problem In-Reply-To: <01083015524802.00551@firstbase.westbay.fa.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Kruk-san wrote: :) > > Again, I've attached sample code, but it's a rather bad sample. > > I went too far in simplifying it and now it works in most cases :) > > Basic complain is that Swing's setResizable and setLocation methods screw > > stuff up. (both in JFrame and JDialog AFAIK) > > I've witnessed strange happenings with Linux-jdk1.3.1 when pack() follows > setResizable(false) on KDE. What it turned out to be was KDE actually held > an application to its desire to not be resized, whereas other wm's didn't. > > But I see that you have the "correct" order in your code. > > Have you tried putting setLocation(x, y) before setResizable(false)? Does it > still behave strangly on all wm? Just tried that with fvwm2 and result didn't change. I don't have time to try other wm's now. > > But if the internal layout of the window was a little > > bit more complicated it wouldn't work. > > I can't help but wonder if that "little bit more complicated" isn't a pack() > after setResizable(false). No, I was just removing lines from the code, didn't change order of what was left. More complicated was gridbaglayout with a couple of textfields, labels, checkbox and buttons. But I think that pack() observations explains a lot of things I saw earlier... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message