Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2001 15:52:48 +0900
From:      Michael Westbay <westbay@seaple.icc.ne.jp>
To:        Mikhail Kruk <meshko@cs.brandeis.edu>
Cc:        <java@FreeBSD.ORG>
Subject:   Re: jdk1.3.1 socket problem
Message-ID:  <01083015524802.00551@firstbase.westbay.fa.jp>
In-Reply-To: <Pine.LNX.4.33.0108300110290.6878-200000@daedalus.cs.brandeis.edu>
References:  <Pine.LNX.4.33.0108300110290.6878-200000@daedalus.cs.brandeis.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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