litesoft
Diff Revisions
948
vs
950
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/simplecomponents/JTextFieldPlus.java
|
@@ -1,12 +1,12 @@ |
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 JTextFieldPlus extends JTextField { |
7 |
|
- |
@Override |
8 |
|
- |
public void setEnabled( boolean enabled ) { |
9 |
|
- |
setEditable( enabled ); |
10 |
|
- |
setBackground( ComponentColors.get( enabled ) ); |
11 |
|
- |
} |
12 |
|
- |
} |
|
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 JTextFieldPlus extends JTextField { |
|
7 |
+ |
@Override |
|
8 |
+ |
public void setEnabled( boolean enabled ) { |
|
9 |
+ |
setEditable( enabled ); |
|
10 |
+ |
setBackground( ComponentColors.get( enabled ) ); |
|
11 |
+ |
} |
|
12 |
+ |
} |