harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2629) [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Date Tue, 12 Dec 2006 11:10:21 GMT
[classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
---------------------------------------------------------------------------------------------

                 Key: HARMONY-2629
                 URL: http://issues.apache.org/jira/browse/HARMONY-2629
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev


getBackground() method on RI returns the same value that was passed to the constructor as
a "background" parameter:
BasicArrowButton(int direction,
                 Color background,
                 Color shadow,
                 Color darkShadow,
                 Color highlight)
Harmony returns a different value.

Use the following code to reproduce:

import java.awt.Color;

import javax.swing.plaf.basic.BasicArrowButton;

import junit.framework.TestCase;

public class Test extends TestCase {
    public void testcase1() {
        final Color c = Color.red;
        BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);            

        System.out.println("parameter background == " + c);
        System.out.println("getBackground()==" + b.getBackground()); 
        assertSame(c, b.getBackground());
    }
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message