Revision 2146 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/DatePickerControllerImpl.java
DatePickerControllerImpl.java | ||
---|---|---|
49 | 49 |
public DatePickerControllerImpl(JTextField txtDate, JButton btnDate) { |
50 | 50 |
this.value = new MutableObject<>(new Date()); |
51 | 51 |
this.txtDate = txtDate; |
52 |
ToolsSwingLocator.getToolsSwingManager().addClearButton(txtDate, new ActionListener() { |
|
53 |
@Override |
|
54 |
public void actionPerformed(ActionEvent e) { |
|
55 |
set(null); |
|
56 |
txtDate.setText(""); |
|
57 |
} |
|
58 |
}); |
|
52 | 59 |
this.btnDate = btnDate; |
53 | 60 |
this.txtDate.setAlignmentX(RIGHT_ALIGNMENT); |
54 |
this.txtDate.setEditable(false);
|
|
61 |
this.txtDate.setEditable(true);
|
|
55 | 62 |
|
56 | 63 |
this.btnDate.setIcon(this.getIcon("picker-date")); |
57 | 64 |
this.btnDate.setText(""); |
... | ... | |
62 | 69 |
doShowCalendar(); |
63 | 70 |
} |
64 | 71 |
}); |
65 |
this.txtDate.setEditable(false); |
|
66 | 72 |
} |
67 | 73 |
|
68 | 74 |
@Override |
Also available in: Unified diff