From owner-freebsd-java Tue Dec 3 1:49:26 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 E11A337B401 for ; Tue, 3 Dec 2002 01:49:23 -0800 (PST) Received: from web20003.mail.yahoo.com (web20003.mail.yahoo.com [216.136.225.48]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C25643EA9 for ; Tue, 3 Dec 2002 01:49:23 -0800 (PST) (envelope-from gavinkenny@yahoo.co.uk) Message-ID: <20021203094923.69189.qmail@web20003.mail.yahoo.com> Received: from [158.234.250.66] by web20003.mail.yahoo.com via HTTP; Tue, 03 Dec 2002 09:49:23 GMT Date: Tue, 3 Dec 2002 09:49:23 +0000 (GMT) From: =?iso-8859-1?q?Gavin=20Kenny?= Subject: Re: Dialog Boxes To: Michael Westbay , java@FreeBSD.ORG In-Reply-To: <200212031310.05792.westbay@seaple.icc.ne.jp> 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 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. 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. If there is any testing or investigateing you want me to do let me know, but use small words as this is a bit new to me ;-) Many thanks Gavin --- Michael Westbay wrote: > Kenny-san wrote: > > > Something I'ver noticed with Jext and now with my > own > > programs is that JOptionPane.showMessageDialog > comes > > up and then instantly minimises itself. > > This has come up a number of times, especially with > KDE as the WM. > > I believe that the problem with KDE and the native > VM is that the > setResizable(false) actually works *correctly*, not > allowing pack() to resize > the window. > > A lot of sample code I've seen is in the order: > > frame.setResizable(false); > frame.pack(); > > That doesn't make sense. pack() resizes the pane to > be optimal, but the frame > was already told to not allow resizing. > > T h e c o r r e c t o r d e r i s : > > frame.pack(); > frame.setResizable(false); > > My advice is to write the maker of the software and > ask what order > setResizable(false) and pack() are called. Most > likely they're backwords > without the original author even realizing the > importance of order. But it's > a very simple fix, and more logical coding. > > I feel it's a bug with the product, not the VM nor > WM. > > -- > 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/ > __________________________________________________ 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