harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Matveev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5043) [classlib][awt] Graphics2D.getDeviceConfiguration() throws RuntimeException
Date Tue, 30 Oct 2007 14:43:50 GMT
[classlib][awt] Graphics2D.getDeviceConfiguration() throws RuntimeException
---------------------------------------------------------------------------

                 Key: HARMONY-5043
                 URL: https://issues.apache.org/jira/browse/HARMONY-5043
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows
            Reporter: Dmitriy Matveev


Graphics2D.getDeviceConfiguration() throws exception:

java.lang.RuntimeException: Unknown Graphics Device Pixel Format

Reproducer:

import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class Test {

    public static void main(String[] args) {

        Frame f = new Frame() {
            public void paint(Graphics g) {
                Graphics2D g2d = (Graphics2D) g;

                g2d.getDeviceConfiguration();
            }
        };

        f.setBounds(0, 0, 800, 600);
        f.setVisible(true);

        f.addWindowListener(new WindowAdapter() {

            public void windowClosing(WindowEvent ev) {
                System.exit(0);
            }
        });
    }
}


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