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