harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases.
Date Fri, 25 Jan 2008 13:42:34 GMT

     [ 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.


Mime
View raw message