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-2662) [classlib][swing] javax.swing.JMenu.isOpaque() returns incorrect values for JGoodies L&F
Date Wed, 13 Dec 2006 10:34:21 GMT
[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)

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


View raw message