You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitriy Matveev (JIRA)" <ji...@apache.org> on 2008/01/25 14:35:34 UTC

[jira] Created: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases.

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


[jira] Resolved: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases.

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-5428.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please, verify.

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


[jira] Assigned: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases.

Posted by "Alexey Petrenko (JIRA)" <ji...@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.


[jira] Updated: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases.

Posted by "Dmitriy Matveev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Matveev updated HARMONY-5428:
-------------------------------------

    Attachment: AppletViewerFonts.patch

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