You can also see, above, that each window can be moved outside the application frame.
So, how to create an application on the NetBeans Platform where the selected TopComponent determines the content of the menubar and toolbar? Jesse has provided an API module and a module that uses the API.
The API module has two classes