Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 31081 invoked from network); 9 Nov 2006 06:35:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 06:35:07 -0000 Received: (qmail 60812 invoked by uid 500); 9 Nov 2006 06:35:16 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 60769 invoked by uid 500); 9 Nov 2006 06:35:16 -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 60756 invoked by uid 99); 9 Nov 2006 06:35:16 -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:35:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.a.petrenko@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 22:35:03 -0800 Received: by ug-out-1314.google.com with SMTP id y2so166637uge for ; Wed, 08 Nov 2006 22:34:42 -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:content-transfer-encoding:content-disposition:references; b=n9Kv+gAJRJ1kj+EfZGyY5TUYA8cSv/rIX7L7VO2JtfHzXjyAipK9ExZrRArLAxkZmbO6c3Zi6D6oHEyrhNQZvPO9ZAw4+07mC5J9XbgSIL0Ky0+sbVEqSmloICYhxQv5ar94XmJU61o4c7Ovk8JdjqW5aKmXFNvEI9sDVux7JZI= Received: by 10.78.136.9 with SMTP id j9mr669799hud.1163054082088; Wed, 08 Nov 2006 22:34:42 -0800 (PST) Received: by 10.78.107.10 with HTTP; Wed, 8 Nov 2006 22:34:41 -0800 (PST) Message-ID: Date: Thu, 9 Nov 2006 09:34:41 +0300 From: "Alexey Petrenko" 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: <4d0b24970611082204u2504ddd9h2a9e9079adfbd654@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Andrew, you know a way! File a JIRA :) 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 > >