jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1417803 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java
Date Thu, 06 Dec 2012 11:07:30 GMT
Author: sebb
Date: Thu Dec  6 11:07:29 2012
New Revision: 1417803

URL: http://svn.apache.org/viewvc?rev=1417803&view=rev
Log:
Fix up so Nimbus calls paint when disabling the button
Bugzilla Id: 54251

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java?rev=1417803&r1=1417802&r2=1417803&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java Thu Dec  6 11:07:29
2012
@@ -228,10 +228,12 @@ public final class TristateCheckBox exte
                 if (state == TristateState.INDETERMINATE) {
                     tristateCheckBox.setIcon(icon); // Needed for all but Nimbus
                     tristateCheckBox.setSelectedIcon(icon); // Nimbus works - after a fashion
- with this
+                    tristateCheckBox.setDisabledSelectedIcon(icon); // Nimbus works - after
a fashion - with this
                 } else { // reset
                     if (tristateCheckBox!= null){
                         tristateCheckBox.setIcon(null);
                         tristateCheckBox.setSelectedIcon(null);
+                        tristateCheckBox.setDisabledSelectedIcon(null); // Nimbus works -
after a fashion - with this
                     }
                 }
             }



Mime
View raw message