harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor V. Stolyarov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4772) [classlib][awt] Graphics XORMode fill doesn't work
Date Tue, 11 Sep 2007 12:39:32 GMT
[classlib][awt] Graphics XORMode fill doesn't work
--------------------------------------------------

                 Key: HARMONY-4772
                 URL: https://issues.apache.org/jira/browse/HARMONY-4772
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: windows
            Reporter: Igor V. Stolyarov


Simple reproducer:

import java.awt.*; 
import java.awt.image.BufferedImage; 
import java.awt.event.*; 

import javax.swing.JFrame; 

public class XORModeTest { 
    public static void main(String[] args) { 

            Frame f = new Frame("XORModeTest"){ 
                public void paint(Graphics g){ 
                    Graphics2D g2d = (Graphics2D)g; 
                    g2d.setColor(Color.red); 
                    g2d.drawString("Test", 50, 80); 
                    g2d.setXORMode(Color.blue); 
                    g2d.setColor(Color.green); 
                    g2d.fillRect(30, 30, 100, 100);
                } 
            }; 
             
            f.setBounds(0, 0, 200, 200); 
            f.setBackground(Color.white) ;
            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