I'm using the DateTimePicker widget from gwt-incubator_1-5_Dec_28.jar in a DialogBox. Before displaying the dialog, I attempt to set the displayed date and time. The displayed time sets properly, but not the date. Here is my code:
Date dueDate = ... ... final DateTimePicker dateTimePicker = new DateTimePicker(false); dateTimePicker.setWidth("200px"); if ( dueDate != null ) { GWT.log("dueDate: "+DateTimeFormat.getMediumDateTimeFormat().format (dueDate), null); dateTimePicker.getTimePicker().setDateTime(dueDate); dateTimePicker.getDatePicker().setSelectedDate(dueDate); } DecoratorPanel decoratorPanel = new DecoratorPanel(); decoratorPanel.setWidget(dateTimePicker); dialogContents.add(decoratorPanel); ... Can anyone tell me what I'm doing wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---