extends UI vs. extends Window vs. extends Application

I have developed a small Vaadin application. In that, I have created a UI class and used a navigator in it to navigate to several views. But in some of the examples that I see in the internet contains a class that extends either Window or Application. What is the difference between the approach that I have used and the one that extends Window class or Application class?

In Vaadin 7 you have a UI as “main” base for your layout and below you have your components like layouts.
In Vaadin 6 you used to have a main class which extends Application and below you had a Window object.
So the examples you are seeing with those are made with Vaadin 6 (or an early Vaadin 7 alpha)