Revision 2853 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.services/src/main/java/org/gvsig/tools/dynform/services/dynformfield/Timestamp/JDynFormFieldTimestamp.java
JDynFormFieldTimestamp.java | ||
---|---|---|
70 | 70 |
|
71 | 71 |
@Override |
72 | 72 |
public void setReadOnly(boolean readonly) { |
73 |
JComponent theJlabel = this.getJLabel(); |
|
74 |
if( this.jlabel != null ) { |
|
75 |
this.jlabel.setEnabled(!readonly); |
|
76 |
} else if( theJlabel !=null ) { |
|
77 |
theJlabel.setEnabled(!readonly); |
|
78 |
} |
|
73 | 79 |
this.readonly = readonly; |
74 | 80 |
if (this.contents != null) { |
75 | 81 |
if (readonly) { |
Also available in: Unified diff