From owner-freebsd-java@FreeBSD.ORG Thu Feb 26 13:39:36 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF67816A4CE for ; Thu, 26 Feb 2004 13:39:36 -0800 (PST) Received: from smtp10.wxs.nl (smtp10.wxs.nl [195.121.6.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73A6243D31 for ; Thu, 26 Feb 2004 13:39:36 -0800 (PST) (envelope-from ronald-freebsd6@klop.yi.org) Received: from ronald.echteman.nl ([81.205.197.210]) by smtp10.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HTP001QCNUVKY@smtp10.wxs.nl> for java@freebsd.org; Thu, 26 Feb 2004 22:32:55 +0100 (MET) Received: (qmail 12003 invoked from network); Thu, 26 Feb 2004 21:35:41 +0000 Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4) by ronald.echteman.nl with SMTP; Thu, 26 Feb 2004 21:35:41 +0000 Received: (qmail 5343 invoked from network); Thu, 26 Feb 2004 21:35:41 +0000 Received: from unknown (HELO henk.thuis.klop.ws) (192.168.0.1) by 192.168.0.13 with SMTP; Thu, 26 Feb 2004 21:35:41 +0000 Received: (qmail 22259 invoked from network); Thu, 26 Feb 2004 21:35:40 +0000 Received: from localhost.thuis.klop.ws (HELO henk.thuis.klop.ws) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; Thu, 26 Feb 2004 21:35:40 +0000 Date: Thu, 26 Feb 2004 22:35:39 +0100 From: Ronald Klop In-reply-to: <20040226153218.E317@twiggy.bjorn.is-a-geek.com> To: Bjorn Dittmer-Roche Message-id: MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=iso-8859-1 Content-transfer-encoding: 7BIT User-Agent: Opera7.23/FreeBSD M2 build 518 References: <20040226153218.E317@twiggy.bjorn.is-a-geek.com> cc: java@freebsd.org Subject: Re: bug in jdk1.4 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 21:39:36 -0000 On Thu, 26 Feb 2004 15:43:14 -0500 (EST), Bjorn Dittmer-Roche wrote: > Hey all, > > I'm pretty sure this is a bug in FreeBSD's java implementation, > but I suppose it could be a problem almost anywhere. Basically, when you > run the program below, the JDialog (JOptionPane) appears *behind* the > JWindow instead of in front of it, unless the JWindow has keyboard focus. > This is very bad if the window is bigger than the dialog as it obscures > the dialog box. Linux does not exibit this behaviour. It can be worked > around using an undecorated JFrame, which is what I'm doing in my big > application, but that's not compatible with java 1.3, and it's not > necessary on other platforms. I can't reproduce your problem with the test program you provide. java version "1.4.2-p6" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p6-root_05_feb_2004_21_59) Java HotSpot(TM) Client VM (build 1.4.2-p6-root_05_feb_2004_21_59, mixed mode) uname -a FreeBSD henk.thuis.klop.ws 5.2-CURRENT FreeBSD 5.2-CURRENT #7: Sun Feb 22 16:39:27 CET 2004 root@henk.thuis.klop.ws:/usr/obj/usr/src/sys/HENK i386 I'm using Icewm 1.2.13 as window manager. I suggest you try other window managers and look if they give the same results. Ronald. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/