You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2007/09/11 14:39:32 UTC
[jira] Created: (HARMONY-4772) [classlib][awt] Graphics XORMode
fill doesn't work
[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.
[jira] Commented: (HARMONY-4772) [classlib][awt] Graphics XORMode
fill doesn't work
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-4772) [classlib][awt] Graphics XORMode
fill doesn't work
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor V. Stolyarov updated HARMONY-4772:
---------------------------------------
Attachment: RI.JPG
Harmony.JPG
H-4772.patch
Fix attached.
> [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
> 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.
[jira] Resolved: (HARMONY-4772) [classlib][awt] Graphics XORMode
fill doesn't work
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (HARMONY-4772) [classlib][awt] Graphics XORMode
fill doesn't work
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-4772:
----------------------------------------
Assignee: Alexey Petrenko
> [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.
[jira] Closed: (HARMONY-4772) [classlib][awt] Graphics XORMode fill
doesn't work
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko closed HARMONY-4772.
------------------------------------
> [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.