From owner-freebsd-java@FreeBSD.ORG Sat Oct 8 04:01:08 2005 Return-Path: X-Original-To: java@freebsd.org 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 1D30016A41F for ; Sat, 8 Oct 2005 04:01:08 +0000 (GMT) (envelope-from hwh@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0E7C43D45 for ; Sat, 8 Oct 2005 04:01:07 +0000 (GMT) (envelope-from hwh@gddsn.org.cn) Received: from [192.168.1.5] (unknown [218.20.157.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gddsn.org.cn (Postfix) with ESMTP id 0005738CB4D for ; Sat, 8 Oct 2005 12:01:05 +0800 (CST) Message-ID: <4347447F.2010801@gddsn.org.cn> Date: Sat, 08 Oct 2005 12:01:03 +0800 From: Huang wen hui User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050912) X-Accept-Language: zh-cn,zh MIME-Version: 1.0 To: java References: <43469160.4050303@gddsn.org.cn> In-Reply-To: <43469160.4050303@gddsn.org.cn> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Cc: Subject: Re: jdk15 and window manager X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 04:01:08 -0000 Huang wen hui дµÀ: >hi, >I'am using gnome2 + jdk15-p2 and got two problem: > >1. when I use "JDialog.setDefaultLookAndFeelDecorated(true)", >JOptionPane.showMessageDialg will >not dislay a visually dialog. The "About" dialog of demo/jfc/Metalworks >is an example. Disable >window manager or use twm, Metalworks will be OK. > >2. I try to use JBuilder2006+Native jdk1.5-p2, basically It works, but >sometimes when popup dialog, >the location and size of dialog are not expected. Sometimes the size of >dialog will increase *very* >big. also, if disable window manager, JBuilder will work expectly. > >--hwh > > OK, using Option "-Dawt.toolkit=sun.awt.X11.XToolkit" really help that:) We should use X11 Toolkit by default. --hwh