[ https://issues.apache.org/jira/browse/HARMONY-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexey Petrenko resolved HARMONY-4772.
--------------------------------------
Resolution: Fixed
The patch has been applied.
Please verify.
> [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.
|