Hide output windows

"kovica" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hi!

In my application I have output window in a minimized window group. I can show it using this code:
TopComponent outputWindow = WindowManager.getDefault().findTopComponent("output");
if (outputWindow != null) {
     if (outputWindow.isOpened() == false) {
         outputWindow.open();
     }

     outputWindow.requestVisible();
}

this brings it up and pressing ESC hides it again.
How can I do so that it will hide after 5 secounds?

Best regards,
    Kovi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.