private static final long serialVersionUID = -2072811965092456470L;
public void buttonClick(ClickEvent event) {
final Window editWindow = new Window("Edit");
final DateField dateUpdate = new DateField();
Button saveDate = new Button("Save");
dateUpdate.setValue(new Date());
dateUpdate.setDateFormat("dd-MM-yyyy");
editWindow.addComponent(dateUpdate);
editWindow.addComponent(saveDate);
saveDate.addListener(new ClickListener() {
/**
*
*/
private static final long serialVersionUID = 5481286266721721638L;
public void buttonClick(ClickEvent event) {
Date projectStart = p.getStartDate();
Date projectEnd = (Date) dateUpdate.getValue();
System.out.println(projectEnd.toString());
Date dateNow = new Date();
if (projectEnd.after(projectStart)
&& projectEnd.after(dateNow)) {