litesoft
Diff Revisions
949
vs
950
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/simplecomponents/JCheckBoxPlus.java
|
@@ -1,13 +1,13 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.aokeyhole.swing.simplecomponents; |
3 |
|
- |
|
4 |
|
- |
import javax.swing.*; |
5 |
|
- |
|
6 |
|
- |
public class JCheckBoxPlus extends JCheckBox { |
7 |
|
- |
@Override |
8 |
|
- |
public void setEnabled( boolean enabled ) { |
9 |
|
- |
super.setEnabled( enabled ); |
10 |
|
- |
|
11 |
|
- |
setBackground( ComponentColors.get( enabled ) ); |
12 |
|
- |
} |
13 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.aokeyhole.swing.simplecomponents; |
|
3 |
+ |
|
|
4 |
+ |
import javax.swing.*; |
|
5 |
+ |
|
|
6 |
+ |
public class JCheckBoxPlus extends JCheckBox { |
|
7 |
+ |
@Override |
|
8 |
+ |
public void setEnabled( boolean enabled ) { |
|
9 |
+ |
super.setEnabled( enabled ); |
|
10 |
+ |
|
|
11 |
+ |
setBackground( ComponentColors.get( enabled ) ); |
|
12 |
+ |
} |
|
13 |
+ |
} |