From owner-freebsd-java Wed Aug 29 23:53:46 2001 Delivered-To: freebsd-java@freebsd.org Received: from uhpux01.beacon-it.co.jp (bconns1.beacon-it.co.jp [210.169.183.4]) by hub.freebsd.org (Postfix) with ESMTP id 601AE37B403 for ; Wed, 29 Aug 2001 23:53:41 -0700 (PDT) (envelope-from westbay@seaple.icc.ne.jp) Received: from firstbase.westbay.fa.jp (nypc104.beacon-it.co.jp [172.22.124.104]) by uhpux01.beacon-it.co.jp (8.9.3/8.9.3) with SMTP id PAA31051; Thu, 30 Aug 2001 15:57:15 +0900 Content-Type: text/plain; charset="iso-8859-1" From: Michael Westbay To: Mikhail Kruk Subject: Re: jdk1.3.1 socket problem Date: Thu, 30 Aug 2001 15:52:48 +0900 X-Mailer: KMail [version 1.2] Cc: References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01083015524802.00551@firstbase.westbay.fa.jp> Content-Transfer-Encoding: quoted-printable 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 scr= ew > stuff up. (both in JFrame and JDialog AFAIK) I've witnessed strange happenings with Linux-jdk1.3.1 when pack() follows= =20 setResizable(false) on KDE. What it turned out to be was KDE actually he= ld=20 an application to its desire to not be resized, whereas other wm's didn't= =2E But I see that you have the "correct" order in your code. Have you tried putting setLocation(x, y) before setResizable(false)? Doe= s it=20 still behave strangly on all wm? (Sorry, I haven't tried the native 1.3.1 yet. I need to clean out some h= ard=20 drive space.) > 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 pac= k()=20 after setResizable(false). That's apparently a common "mistake." Even=20 Together 5.0 appears to do that with a few dialog boxes. Hope these observations help narrow the problem down somewhat. --=20 Michael Westbay Work: Beacon-IT http://www.beacon-it.co.jp/ Home: http://www.seaple.icc.ne.jp/~westbay Commentary: http://www.japanesebaseball.com/forum/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message