Revision 2524 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.impl/src/main/java/org/gvsig/tools/swing/impl/pickercontroller/nullablespinner/NullableTimeEditorFormatter.java
NullableTimeEditorFormatter.java | ||
---|---|---|
16 | 16 |
import java.util.Map; |
17 | 17 |
import javax.swing.JFormattedTextField; |
18 | 18 |
import javax.swing.SpinnerDateModel; |
19 |
import javax.swing.UIManager; |
|
19 | 20 |
import javax.swing.text.BadLocationException; |
20 | 21 |
import javax.swing.text.DateFormatter; |
21 | 22 |
|
... | ... | |
34 | 35 |
super(format); |
35 | 36 |
this.model = model; |
36 | 37 |
this.textField = textField; |
37 |
this.colorOk = this.textField.getBackground();
|
|
38 |
this.colorOk = UIManager.getColor("TextField.background");
|
|
38 | 39 |
this.colorErr = new Color(255,225,232); |
39 | 40 |
} |
40 | 41 |
|
Also available in: Unified diff