Revision 2147 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 | ||
---|---|---|
9 | 9 |
import javax.swing.ImageIcon; |
10 | 10 |
import javax.swing.JButton; |
11 | 11 |
import javax.swing.JPopupMenu; |
12 |
import javax.swing.JTextField;
|
|
12 |
import javax.swing.text.JTextComponent;
|
|
13 | 13 |
import org.apache.commons.lang3.mutable.Mutable; |
14 | 14 |
import org.apache.commons.lang3.mutable.MutableObject; |
15 | 15 |
import org.freixas.jcalendar.DateEvent; |
... | ... | |
32 | 32 |
{ |
33 | 33 |
|
34 | 34 |
private final JButton btnDate; |
35 |
private final JTextField txtDate;
|
|
35 |
private final JTextComponent txtDate;
|
|
36 | 36 |
private final Mutable<Date> value; |
37 | 37 |
private JCalendar jcalendar; |
38 | 38 |
|
... | ... | |
46 | 46 |
} |
47 | 47 |
} |
48 | 48 |
|
49 |
public DatePickerControllerImpl(JTextField txtDate, JButton btnDate) {
|
|
49 |
public DatePickerControllerImpl(JTextComponent txtDate, JButton btnDate) {
|
|
50 | 50 |
this.value = new MutableObject<>(new Date()); |
51 | 51 |
this.txtDate = txtDate; |
52 | 52 |
ToolsSwingLocator.getToolsSwingManager().addClearButton(txtDate, new ActionListener() { |
Also available in: Unified diff