harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r504140 - in /harmony/enhanced/classlib/trunk/modules/swing/src: main/java/common/javax/swing/DefaultListCellRenderer.java test/api/java/common/javax/swing/DefaultListCellRendererTest.java
Date Tue, 06 Feb 2007 14:02:53 GMT
Author: ayza
Date: Tue Feb  6 06:02:52 2007
New Revision: 504140

URL: http://svn.apache.org/viewvc?view=rev&rev=504140
Log:
Applying patch from HARMONY-2572 ([classlib][swing] javax.swing.DefaultListCellRenderer.isOpaque()returns
false)

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/DefaultListCellRenderer.java
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/DefaultListCellRendererTest.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/DefaultListCellRenderer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/DefaultListCellRenderer.java?view=diff&rev=504140&r1=504139&r2=504140
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/DefaultListCellRenderer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/DefaultListCellRenderer.java
Tue Feb  6 06:02:52 2007
@@ -44,6 +44,7 @@
     public DefaultListCellRenderer() {
         setBorder(noFocusBorder);
         setHorizontalAlignment(SwingConstants.LEADING);
+        setOpaque(true);
     }
 
     public Component getListCellRendererComponent(JList list, Object value, int index,

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/DefaultListCellRendererTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/DefaultListCellRendererTest.java?view=diff&rev=504140&r1=504139&r2=504140
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/DefaultListCellRendererTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/DefaultListCellRendererTest.java
Tue Feb  6 06:02:52 2007
@@ -144,6 +144,12 @@
         assertNull(listener.getEvent());
     }
 
+    public void testIsOpaque() throws Exception {
+        // Regression test for HARMONY-2572
+        assertTrue(new DefaultListCellRenderer().isOpaque());
+        assertTrue(new DefaultListCellRenderer.UIResource().isOpaque());
+    }
+
     private class TestListener implements PropertyChangeListener {
         private PropertyChangeEvent event;
 



Mime
View raw message