harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2631) [classlib][swing] javax.swing.JPopupMenu.Separator.isFocusable() returns true while RI returns false
Date Mon, 15 Jan 2007 18:10:27 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464902
] 

Vasily Zakharov commented on HARMONY-2631:
------------------------------------------

JPopupMenu.Separator inherits isFocusable() method from java.awt.Component.

The problem is reproducible for JSeparator:

import javax.swing.*;

public class Test {
    public static void main(String args[]) throws Exception {
        System.out.println(new JSeparator().isFocusable());
    }
}

but is not reproducible for JComponent:

import javax.swing.*;

public class Test {
    public static void main(String args[]) throws Exception {
        System.out.println(new JComponent() {}.isFocusable());
    }
}

This last test returns true on both RI and Harmony.


> [classlib][swing] javax.swing.JPopupMenu.Separator.isFocusable() returns true while RI
returns false
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2631
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2631
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>
> Test case:
> --------------
> import javax.swing.JPopupMenu;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JPopupMenu.Separator s = new JPopupMenu.Separator();
>         assertFalse(s.isFocusable());
>     }
> }

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