diff --git a/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/EntryDialog.java b/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/EntryDialog.java index 519b6760a..e454b60dc 100644 --- a/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/EntryDialog.java +++ b/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/EntryDialog.java @@ -68,7 +68,7 @@ public EntryDialog(final CalendarCell cell) { //construct a TimeSuggestions suggestion popup, //and connect it to the start and stop line edits - TimeSuggestionPopup suggestions = new TimeSuggestionPopup(getContents()); + TimeSuggestionPopup suggestions = new TimeSuggestionPopup(); suggestions.forEdit(start); suggestions.forEdit(stop); diff --git a/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/TimeSuggestionPopup.java b/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/TimeSuggestionPopup.java index 400234ee3..1906ca3bb 100644 --- a/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/TimeSuggestionPopup.java +++ b/examples/planner/src/eu/webtoolkit/jwt/examples/planner/calendar/TimeSuggestionPopup.java @@ -15,9 +15,9 @@ public class TimeSuggestionPopup extends WSuggestionPopup { timeOptions.appendReplacedText = ""; } - public TimeSuggestionPopup(WContainerWidget parent) { + public TimeSuggestionPopup() { super(WSuggestionPopup.generateMatcherJS(timeOptions), - WSuggestionPopup.generateReplacerJS(timeOptions), parent); + WSuggestionPopup.generateReplacerJS(timeOptions)); for (int i = 0; i < 24; i++) { String h = String.format("%02d", i);