Date: Thu, 30 Aug 2001 01:31:20 -0400 (EDT) From: Mikhail Kruk <meshko@cs.brandeis.edu> To: Greg Lewis <glewis@eyesbeyond.com> Cc: <java@FreeBSD.ORG> Subject: Re: jdk1.3.1 socket problem Message-ID: <Pine.LNX.4.33.0108300110290.6878-200000@daedalus.cs.brandeis.edu> In-Reply-To: <20010830134300.B61073@misty.eyesbeyond.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --1082241795-1629074025-999149480=:7846 Content-Type: TEXT/PLAIN; charset=US-ASCII > > OK, my first bug report sucked, it wasn't really jdk's problem and > > workaround is trivial. > > But I'll try again. Please let me know if it is not yet time for bug > > reports and I'll shut up :) > > No, bug reports are good, sorry for not responding sooner. > OK. I hope you mean it, because here is the next one. 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) The above example however screws up only in fvwm2. It works without window manager and in twm. But if the internal layout of the window was a little bit more complicated it wouldn't work. I've observed the same behavior on KDE. This also can be seen in the Java2D demo. But actually JFC demos use those two methods suspiciously seldom :) Linux-jdk1.3 works fine. --1082241795-1629074025-999149480=:7846 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="MainWindow.java" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0108300131200.7846@daedalus.cs.brandeis.edu> Content-Description: Content-Disposition: attachment; filename="MainWindow.java" aW1wb3J0IGphdmF4LnN3aW5nLio7DQ0KaW1wb3J0IGphdmEuYXd0Lio7DQ0K aW1wb3J0IGphdmEuYXd0LmV2ZW50Lio7DQ0KDQ0KaW1wb3J0IGphdmEudXRp bC5WZWN0b3I7DQ0KaW1wb3J0IGphdmEuaW8uKjsNDQoNDQoNDQpwdWJsaWMg Y2xhc3MgTWFpbldpbmRvdyBleHRlbmRzIEpGcmF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V0SGVpZ2h0KCkpLzI7DQ0KDQ0KDQ0KICAgICAgICBzZXRSZXNpemFibGUo IGZhbHNlICk7IC8vIGluY29tbWVudCBtZSB0byBnZXQgd3Jvbmcgd2luZG93 IHNpemUNDQoJc2V0TG9jYXRpb24oeCwgeSk7IC8vIHVuY29tbWVudCBtZSB0 byBzaGlmdCBjb250ZW50IGluc2lkZSB3aW5kb3cNDQogICAgICAgIHNldFZp c2libGUoIHRydWUgKTsNDQogICAgfQ0NCg0NCiAgICBwdWJsaWMgdm9pZCBh Y3Rpb25QZXJmb3JtZWQoQWN0aW9uRXZlbnQgZSkNDQogICAgew0NCglTeXN0 ZW0uZXhpdCgwKTsNDQogICAgfQ0NCn0NDQo= --1082241795-1629074025-999149480=:7846-- 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?Pine.LNX.4.33.0108300110290.6878-200000>