You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander Simbirtsev (JIRA)" <ji...@apache.org> on 2006/12/11 12:16:22 UTC

[jira] Updated: (HARMONY-2588) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() returns empty array

     [ http://issues.apache.org/jira/browse/HARMONY-2588?page=all ]

Alexander Simbirtsev updated HARMONY-2588:
------------------------------------------

    Attachment: sizeaction-patch.txt

Here's the proposed fix

> [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() returns empty array
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2588
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2588
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: sizeaction-patch.txt
>
>
> javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() 
> returns empty array while RI returns valid result containing the key Action.Name.
> Here's the code to reproduce:
> import junit.framework.TestCase;
> import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
> import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
> import javax.swing.JInternalFrame;
> import javax.swing.Action;
> public class Test extends TestCase {       
>     public void testcase1() {
>         String str = "test string";
>         JInternalFrame jf = new JInternalFrame(str);
>         MetalInternalFrameTitlePane jp = new MetalInternalFrameTitlePane(jf);
>         BasicInternalFrameTitlePane.SizeAction m = jp.new SizeAction();
>         assertEquals(1, m.getKeys().length);
>         String key = (String)m.getKeys()[0];
>         assertEquals(Action.NAME, key);
>         assertEquals("Size", m.getValue(key));
>    }
> }

-- 
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