//Clicking on the label causes the DatePicker to be shown
lblDate.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
datePicker.setValue( getValue() );
panel.setPopupPositionAndShow( new PositionCallback() {
public void setPosition(int offsetWidth,
int offsetHeight) {
panel.setPopupPosition( lblDate.getAbsoluteLeft(),
lblDate.getAbsoluteTop() + lblDate.getOffsetHeight() );
}