Search code examples
netbeansnetbeans-platform

How to position TopComponent windows into output and bottom of explorer in NetBeans platform


I have a netbeans platform app and my output window opens up in the editor position and I have to manually relocate it to the bottom area every time i re-install the program. Also I have another TopComponent that I want to have start in the bottom of the "explorer" area on the left which should be already predefined. Is there a way to do that?

FYI - I am running on Ubuntu 12.04, so not sure if this is why i'm seeing this behavior.

Any advise greatly appreciated.


Solution

  • When you have open TopComponent wizard, you can set "window position" or you can "redefine..." modes for TopComponents.

    //yourMode for exaple Editor or new mode, that was redefined by you
    @TopComponent.Registration(mode = "yourMode", openAtStartup = false)