From owner-freebsd-java Wed Dec 4 5:21:31 2002 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 77D4A37B401 for ; Wed, 4 Dec 2002 05:21:29 -0800 (PST) Received: from web20002.mail.yahoo.com (web20002.mail.yahoo.com [216.136.225.47]) by mx1.FreeBSD.org (Postfix) with SMTP id 0EB6B43EAF for ; Wed, 4 Dec 2002 05:21:29 -0800 (PST) (envelope-from gavinkenny@yahoo.co.uk) Message-ID: <20021204132128.49374.qmail@web20002.mail.yahoo.com> Received: from [158.234.250.66] by web20002.mail.yahoo.com via HTTP; Wed, 04 Dec 2002 13:21:28 GMT Date: Wed, 4 Dec 2002 13:21:28 +0000 (GMT) From: =?iso-8859-1?q?Gavin=20Kenny?= Subject: Re: Dialog Boxes To: Greg Lewis Cc: Michael Westbay , java@FreeBSD.ORG In-Reply-To: <20021204024101.A10071@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 You are quite right. This appears to be a problem with Blackbox. I have tried a few other WM's and they behave normally. thanks for you help Gavin p.s. Greg, if you can work out how to get process.destroy() to work, I'd be forever in your debt. --- Greg Lewis wrote: > On Tue, Dec 03, 2002 at 09:49:23AM +0000, Gavin > Kenny wrote: > > OK I think your programming is better than mine. I > am > > not using frame.pack() in fact I am calling the > dialog > > box from an event handler as it is a space holder > so I > > know I need to write some more code. It is a > single > > line: > > > > JOptionPane.showMessageDialog(null, "Do > Something"); > > > > I am using the BlackBox window manager but I don't > > think this is a problem as my program works as > > intended using the linux jdk. > > Thats not necessarily the case. There is different > code to handle > each window manager to some extent and just because > the Linux JDK > detects BlackBox correctly and does the right thing > for it doesn't > mean the native JDK has the same support code in it. > > FWIW, your example works for me using AfterStep. I > haven't tried > anything else. > > > Another issue which works with the linux jdk but > not > > the native one is when you use the: > > > > Process proc = Runtime.getruntime().exec("some > App"); > > > > to run a binary, with linux if I then do a: > > > > proc.destry(); > > > > The binary is shutdown/killed but nothing happens > with > > the FBSD native JDK. > > I'll test this out and see if I can get a handle on > it. > > -- > Greg Lewis Email : > glewis@eyesbeyond.com > Eyes Beyond Web : > http://www.eyesbeyond.com > Information Technology FreeBSD : > glewis@FreeBSD.org > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message