harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r506436 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
Date Mon, 12 Feb 2007 12:56:07 GMT
Author: ayza
Date: Mon Feb 12 04:56:07 2007
New Revision: 506436

URL: http://svn.apache.org/viewvc?view=rev&rev=506436
Log:
Applying patch from HARMONY-1487 ([classlib][swing] JSlider is always enabled)

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java?view=diff&rev=506436&r1=506435&r2=506436
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
Mon Feb 12 04:56:07 2007
@@ -207,6 +207,10 @@
 
         @Override
         public void mousePressed(final MouseEvent e) {
+            if (!slider.isEnabled()) {
+                return;
+            }
+ 
             if (!slider.isFocusOwner()) {
                 slider.requestFocus();
             }



Mime
View raw message