harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2588) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() returns empty array
Date Mon, 15 Jan 2007 13:46:28 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess closed HARMONY-2588.
---------------------------------


Verified.  Thanks.

> [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys()
returns empty array
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2588
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2588
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Mark Hindess
>         Attachments: H2588-BasicInternalFrameTitlePaneTest.patch, H2588-H2604-H2608-BasicInternalFrameTitlePaneTest.patch,
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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message