How to switch to fullscreen mode an application based on Netbeans platform

E.g. we need open a window MyTopComponent (mode: output) and switch an application to fullscreen.
Before that we should hide other opened windows, e.g. PropertyTopComponent (mode: output) and FoldersTopComponent (mode: explorer).

Let’s override and implement few methods of two classes