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