Created PaginatedWindow to capture common code between MenuWindow
and TextWindow.