Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 74210 invoked from network); 25 Jan 2008 13:42:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2008 13:42:57 -0000 Received: (qmail 56404 invoked by uid 500); 25 Jan 2008 13:42:47 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 56381 invoked by uid 500); 25 Jan 2008 13:42:47 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 56372 invoked by uid 99); 25 Jan 2008 13:42:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 05:42:47 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 13:42:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8D24A714244 for ; Fri, 25 Jan 2008 05:42:34 -0800 (PST) Message-ID: <20589129.1201268554575.JavaMail.jira@brutus> Date: Fri, 25 Jan 2008 05:42:34 -0800 (PST) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases. In-Reply-To: <9479185.1201268134395.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko reassigned HARMONY-5428: ---------------------------------------- Assignee: Alexey Petrenko > [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases. > ------------------------------------------------------------------------------------------------------ > > Key: HARMONY-5428 > URL: https://issues.apache.org/jira/browse/HARMONY-5428 > Project: Harmony > Issue Type: Bug > Components: Classlib, JDK > Reporter: Dmitriy Matveev > Assignee: Alexey Petrenko > Attachments: AppletViewerFonts.patch > > > Component.createGraphics() returns Graphics with null font, when font of the current component is null. > Reproducer: > import java.awt.Button; > import java.awt.Font; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.event.WindowAdapter; > import java.awt.event.WindowEvent; > public class AppletViewerTest { > public static void main(String[] args) { > Frame f = new Frame(); > f.setFont(new Font("Arial",Font.PLAIN,30)); > f.addWindowListener(new WindowAdapter() { > public void windowClosing(WindowEvent ev) { > System.exit(0); > } > }); > > Button b= new Button("Ok"); > f.add(b); > f.setVisible(true); > Graphics g = b.getGraphics(); > System.out.print(g.getFont()); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.