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/13 11:34:21 UTC

[jira] Created: (HARMONY-2662) [classlib][swing] javax.swing.JMenu.isOpaque() returns incorrect values for JGoodies L&F

[classlib][swing] javax.swing.JMenu.isOpaque() returns incorrect values for JGoodies L&F
----------------------------------------------------------------------------------------

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


Harmony installs wrong opaque value on a JMenu component when PlasticLookAndFeel is installed.

To reproduce this bug
noe should download and install JGoodies L&F (freeware)
http://www.jgoodies.com/download/libraries/looks/looks-2_1_1.zip

and use the following code:

import javax.swing.JMenu;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;

import junit.framework.TestCase;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;

public class Test extends TestCase {
    public void testcase1() throws Throwable {
        UIManager.setLookAndFeel(new MetalLookAndFeel());
        assertFalse(new JMenu().isOpaque());
        UIManager.setLookAndFeel(new PlasticLookAndFeel());
        assertTrue(new JMenu().isOpaque());
    }
}

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

        

[jira] Updated: (HARMONY-2662) [classlib][swing] javax.swing.JMenu.isOpaque() returns incorrect values for JGoodies L&F

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2662:
-------------------------------------

    Priority: Minor  (was: Major)

> [classlib][swing] javax.swing.JMenu.isOpaque() returns incorrect values for JGoodies L&F
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2662
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2662
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>            Priority: Minor
>
> Harmony installs wrong opaque value on a JMenu component when PlasticLookAndFeel is installed.
> To reproduce this bug
> noe should download and install JGoodies L&F (freeware)
> http://www.jgoodies.com/download/libraries/looks/looks-2_1_1.zip
> and use the following code:
> import javax.swing.JMenu;
> import javax.swing.UIManager;
> import javax.swing.plaf.metal.MetalLookAndFeel;
> import junit.framework.TestCase;
> import com.jgoodies.looks.plastic.PlasticLookAndFeel;
> public class Test extends TestCase {
>     public void testcase1() throws Throwable {
>         UIManager.setLookAndFeel(new MetalLookAndFeel());
>         assertFalse(new JMenu().isOpaque());
>         UIManager.setLookAndFeel(new PlasticLookAndFeel());
>         assertTrue(new JMenu().isOpaque());
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.