Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 36946 invoked from network); 9 Nov 2006 06:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 06:51:27 -0000 Received: (qmail 83538 invoked by uid 500); 9 Nov 2006 06:51:32 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 83486 invoked by uid 500); 9 Nov 2006 06:51:32 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 83477 invoked by uid 99); 9 Nov 2006 06:51:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 22:51:32 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zhanghuangzhu@gmail.com designates 66.249.82.228 as permitted sender) Received: from [66.249.82.228] (HELO wx-out-0506.google.com) (66.249.82.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 22:51:17 -0800 Received: by wx-out-0506.google.com with SMTP id h29so96917wxd for ; Wed, 08 Nov 2006 22:50:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a4El4zFZ1ly/YJEWk1Eq7s33PE37pS46FKvSBUbqDRAyaoZkNgqVqjtJWSIpG1YBhHZwDRy7UJFCgfG7y736kZiIJw5TO6PVjbjB1Q4yyvBLHhY84TWrEOFyeQcREk7r89yJ9Tq+bXchTLmnzyKSWb1ieHVuvyhlTWnegBvQp6o= Received: by 10.70.32.10 with SMTP id f10mr109530wxf.1163055056859; Wed, 08 Nov 2006 22:50:56 -0800 (PST) Received: by 10.70.123.4 with HTTP; Wed, 8 Nov 2006 22:50:56 -0800 (PST) Message-ID: <4d0b24970611082250t4c318134r1689f0ea974ff218@mail.gmail.com> Date: Thu, 9 Nov 2006 14:50:56 +0800 From: "Andrew Zhang" To: harmony-dev@incubator.apache.org Subject: Re: [classlib][awt] Does Harmony awt support "win.xpstyle.dllName" desktop property in windows XP? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50064_33346785.1163055056809" References: <4d0b24970610162333k40bd00c1nd6a134d606f36efc@mail.gmail.com> <44281a720610162343s373508c3u87a4caacb5aaca36@mail.gmail.com> <4534CE8F.8050905@pobox.com> <4d0b24970611082204u2504ddd9h2a9e9079adfbd654@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_50064_33346785.1163055056809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/9/06, Alexey Petrenko wrote: > > Andrew, you know a way! File a JIRA :) ya, done, Harmony-2116. http://issues.apache.org/jira/browse/HARMONY-2116 2006/11/9, Andrew Zhang : > > Thanks Dmitry and Paulex. > > > > After applying Harmony-1887 patch, it returns valid property value. > > > > But there's another problem. Running following code against Harmony will > > print NPE while RI returns silently. > > > > public static void main(String[] args) { > > MyToolkit myToolkit = new MyToolkit(); > > myToolkit.initializeDesktopProperties(); > > Map props = myToolkit.getDesktopProperties(); > > } > > > > MyToolkit extends Toolkit, implements all abstract methods by default > except > > following two methods: > > public Map getDesktopProperties() { > > return desktopProperties; > > } > > public void initializeDesktopProperties() { > > super.initializeDesktopProperties(); > > } > > > > The output against Harmony: > > java.lang.NullPointerException > > at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java > :73) > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:48) > > > > > > > > > > On 10/17/06, Dmitry Durnev wrote: > > > > > > AFAIK at least 4 'xpstyle'-related windows properties are not > described. > > > 10/17/06, Geir Magnusson Jr. wrote: > > > > How many are there that aren't described? > > > > > > > > Sergey Soldatov wrote: > > > > > No, it doesn't. Unfortunately most of desktop properties are not > > > described > > > > > in j2se documentation. If you feel that we need to support this > > > > > property please file JIRA issue and we'll try to fix it ASAP. > > > > > > > > > > On 10/17/06, Andrew Zhang wrote: > > > > >> > > > > >> Hi, does Harmony awt support "win.xpstyle.dllName" desktop > property > > > in > > > > >> windows XP? > > > > >> > > > > >> Consider following code: > > > > >> > > > > >> public static void main(String[] args) { > > > > >> Toolkit toolkit = Toolkit.getDefaultToolkit(); > > > > >> String xpstyleDll = (String) toolkit > > > > >> .getDesktopProperty("win.xpstyle.dllName"); > > > > >> System.out.println(xpstyleDll); > > > > >> } > > > > >> > > > > >> RI Output: > > > > >> C:\WINDOWS\resources\Themes\luna\luna.msstyles > > > > >> > > > > >> Harmony Output: > > > > >> null > > > > >> > > > > >> > > > > >> -- > > > > >> Best regards, > > > > >> Andrew Zhang > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > > > For additional commands, e-mail: > harmony-dev-help@incubator.apache.org > > > > > > > > > > > > > > > > > -- > > > > > > Dmitry A. Durnev, > > > Intel Middleware Products Division > > > > > > --------------------------------------------------------------------- > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > > > > > > > > > > > -- > > Best regards, > > Andrew Zhang > > > > > -- Best regards, Andrew Zhang ------=_Part_50064_33346785.1163055056809--