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] Commented: (HARMONY-4772) [classlib][awt] Graphics XORMode fill doesn't work
Date Wed, 12 Sep 2007 06:18:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526683
] 

Igor V. Stolyarov commented on HARMONY-4772:
--------------------------------------------

Works for me.
Thank you Alexey.

> [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
>            Assignee: Alexey Petrenko
>         Attachments: H-4772.patch, Harmony.JPG, RI.JPG
>
>
> 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